Index: Classes/TypoScript/IncludeTree/SysTemplateRepository.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/Classes/TypoScript/IncludeTree/SysTemplateRepository.php b/Classes/TypoScript/IncludeTree/SysTemplateRepository.php --- a/Classes/TypoScript/IncludeTree/SysTemplateRepository.php +++ b/Classes/TypoScript/IncludeTree/SysTemplateRepository.php (date 1730794802911) @@ -61,6 +61,9 @@ */ public function getSysTemplateRowsByRootline(array $rootline, ?ServerRequestInterface $request = null): array { + if ($rootline === []) { + return []; + } // Site-root node first! $rootLinePageIds = array_reverse(array_column($rootline, 'uid')); $sysTemplateRows = [];