diff --git a/src/EventListener/DataContainer/MissingLanguageIconListener.php b/src/EventListener/DataContainer/MissingLanguageIconListener.php index 63d983f..e14484e 100644 --- a/src/EventListener/DataContainer/MissingLanguageIconListener.php +++ b/src/EventListener/DataContainer/MissingLanguageIconListener.php @@ -268,6 +268,7 @@ private function getPageTranslation(int $id): ?array $this->pageCache = []; $rootIds = $this->connection->fetchFirstColumn("SELECT id FROM tl_page WHERE type='root' AND (fallback='' OR languageRoot>0)"); + $rootIds = array_map('intval', $rootIds); foreach ($rootIds as $rootId) { $this->pageCache += $childRecords([$rootId => []], $rootId);