Skip to content

Commit

Permalink
[TASK] PHP 8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rupertgermann committed Sep 29, 2024
1 parent 3f58615 commit ae02ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Hooks/DataHandlerHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,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 = $fieldArray['category'] ? GeneralUtility::intExplode(',', $fieldArray['category']) : [];
$wantedCategories = ($fieldArray['category'] ?? false) ? GeneralUtility::intExplode(',', $fieldArray['category']) : [];
foreach ($wantedCategories as $wantedCategory) {
$categories[$wantedCategory] = $wantedCategory;
}
Expand Down

0 comments on commit ae02ba4

Please sign in to comment.