diff --git a/Classes/ContentObject/JsonContentObject.php b/Classes/ContentObject/JsonContentObject.php index 7d3bb7ce..3ea68daa 100755 --- a/Classes/ContentObject/JsonContentObject.php +++ b/Classes/ContentObject/JsonContentObject.php @@ -108,8 +108,8 @@ public function cObjGet(array $setup, string $addKey = ''): array if ((isset($conf['floatval']) && $conf['floatval']) || $theValue === 'FLOAT') { $content[$theKey] = (float)$content[$theKey]; } - if ($theValue === 'BOOL') { - $content[$theKey] = (bool)$content[$theKey]; + if ((isset($conf['boolval']) && $conf['boolval']) || $theValue === 'BOOL') { + $content[$theKey] = (bool)(int)$content[$theKey]; } if ($theValue === 'USER_INT' || strpos((string)$content[$theKey], '