From 5a7fcf7982eaf4218f928cbc039c39b003c20139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Wolda=C5=84ski?= Date: Wed, 10 May 2023 09:58:51 +0200 Subject: [PATCH] [FEATURE] Allow non cachable plugins to return null on empty --- Classes/ContentObject/JsonContentObject.php | 2 +- Classes/Utility/HeadlessUserInt.php | 83 ++++++++++++++------- 2 files changed, 55 insertions(+), 30 deletions(-) diff --git a/Classes/ContentObject/JsonContentObject.php b/Classes/ContentObject/JsonContentObject.php index 1555ad1b..14f29664 100755 --- a/Classes/ContentObject/JsonContentObject.php +++ b/Classes/ContentObject/JsonContentObject.php @@ -114,7 +114,7 @@ public function cObjGet(array $setup, string $addKey = ''): array $content[$theKey] = (bool)$content[$theKey]; } if ($theValue === 'USER_INT' || strpos((string)$content[$theKey], '