From ecbb6fde5587242a4c143e01208e301958a836db Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Thu, 30 May 2024 16:34:44 +0200 Subject: [PATCH] Make sure root page IDs is always int --- src/EventListener/DataContainer/MissingLanguageIconListener.php | 1 + 1 file changed, 1 insertion(+) 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);