From e653f7c7679b53ed43e0a50e87f4f2f12fdc28d6 Mon Sep 17 00:00:00 2001 From: Fritz Michael Gschwantner Date: Wed, 24 Jul 2024 11:54:35 +0100 Subject: [PATCH] fix missing language icon not showing --- .../DataContainer/MissingLanguageIconListener.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/EventListener/DataContainer/MissingLanguageIconListener.php b/src/EventListener/DataContainer/MissingLanguageIconListener.php index 9575e8f..8a7ff02 100644 --- a/src/EventListener/DataContainer/MissingLanguageIconListener.php +++ b/src/EventListener/DataContainer/MissingLanguageIconListener.php @@ -88,8 +88,9 @@ private function onPageLabel(array $args, $previousResult = null): string } $translation = $this->getPageTranslation((int) $row['id']); + $languageMain = $translation['languageMain'] ?? null; - if (0 === ($translation['languageMain'] ?? null)) { + if (null !== $languageMain && 0 === (int) $languageMain) { return $this->generateLabelWithWarning($label); }