Skip to content

Commit 50a7e3c

Browse files
authored
Merge pull request #121 from extcode/112-undefined-array-key-list_type
[BUGFIX] Add fallback for undefined array key list_type
2 parents bdf3e67 + e1bc0e2 commit 50a7e3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Hooks/DatamapDataHandlerHook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function processDatamap_beforeStart(DataHandler $dataHandler): void
4747

4848
$page = BackendUtility::getRecord('pages', abs($pageId));
4949

50-
if (!$this->isAllowedTargetPage($incomingFieldArray['list_type'], $page['doktype'])) {
50+
if (!$this->isAllowedTargetPage($incomingFieldArray['list_type'] ?? '', $page['doktype'])) {
5151
unset($dataHandler->datamap['tt_content'][$id]);
5252
$dataHandler->log(
5353
'tt_content',

0 commit comments

Comments
 (0)