From e2257a9783287f05feaeb8544b5283d356ec8acd Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 22 Oct 2024 15:29:47 +0100 Subject: [PATCH] logic fix --- system/src/Grav/Framework/Flex/FlexCollection.php | 3 ++- system/src/Grav/Framework/Flex/FlexObject.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Framework/Flex/FlexCollection.php b/system/src/Grav/Framework/Flex/FlexCollection.php index 25dcd9d76b..3e9302cb87 100644 --- a/system/src/Grav/Framework/Flex/FlexCollection.php +++ b/system/src/Grav/Framework/Flex/FlexCollection.php @@ -440,7 +440,8 @@ public function render(string $layout = null, array $context = []) ] + $context ); - if ($debugger->enabled() && ($grav['uri']->getContentType() !== 'application/json' || $grav['uri']->extension() !== 'json')) { + if ($debugger->enabled() && + !($grav['uri']->getContentType() === 'application/json' || $grav['uri']->extension() === 'json')) { $output = "\n\n{$output}\n\n"; } diff --git a/system/src/Grav/Framework/Flex/FlexObject.php b/system/src/Grav/Framework/Flex/FlexObject.php index 01295fec92..14f28f9b6a 100644 --- a/system/src/Grav/Framework/Flex/FlexObject.php +++ b/system/src/Grav/Framework/Flex/FlexObject.php @@ -627,7 +627,8 @@ public function render(string $layout = null, array $context = []) ] + $context ); - if ($debugger->enabled() && ($grav['uri']->getContentType() !== 'application/json' || $grav['uri']->extension() !== 'json')) { + if ($debugger->enabled() && + !($grav['uri']->getContentType() === 'application/json' || $grav['uri']->extension() === 'json')) { $name = $this->getKey() . ' (' . $type . ')'; $output = "\n\n{$output}\n\n"; }