diff --git a/Classes/Hooks/ItemsProcFunc.php b/Classes/Hooks/ItemsProcFunc.php index 72c27151d2..ca4e41ae26 100644 --- a/Classes/Hooks/ItemsProcFunc.php +++ b/Classes/Hooks/ItemsProcFunc.php @@ -41,7 +41,10 @@ public function user_templateLayout(array &$config): void { $pageId = 0; - $currentColPos = $config['flexParentDatabaseRow']['colPos']; + $currentColPos = $config['flexParentDatabaseRow']['colPos'] ?? null; + if ($currentColPos === null) { + return; + } $pageId = $this->getPageId($config['flexParentDatabaseRow']['pid']); if ($pageId > 0) {