From 4e1b5bea1a8aa31c33f68c0e51f43222f9cbab62 Mon Sep 17 00:00:00 2001 From: Rupert Germann Date: Sun, 29 Sep 2024 15:59:48 +0200 Subject: [PATCH] [TASK] fixed regression (thanks to jpmschuler) --- Classes/Hooks/DataHandlerHook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Hooks/DataHandlerHook.php b/Classes/Hooks/DataHandlerHook.php index eade72e..f4846da 100644 --- a/Classes/Hooks/DataHandlerHook.php +++ b/Classes/Hooks/DataHandlerHook.php @@ -149,7 +149,7 @@ public function processDatamap_preProcessFieldArray(&$fieldArray, $table, $id, & $allowedItems = $this->getBeUser()->getTSConfig()['tt_newsPerms.']['tt_news_cat.']['allowedItems'] ?? ''; $allowedItems = $allowedItems ? GeneralUtility::intExplode(',', $allowedItems) : Div::getAllowedTreeIDs(); - $wantedCategories = GeneralUtility::intExplode(',', $fieldArray['category'] ?? ''); + $wantedCategories = ($fieldArray['category'] ?? false) ? GeneralUtility::intExplode(',', $fieldArray['category']) : []; foreach ($wantedCategories as $wantedCategory) { $categories[$wantedCategory] = $wantedCategory; }