Skip to content

Commit

Permalink
fix missing language icon not showing (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg authored Jul 29, 2024
1 parent eb2354b commit f52a696
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f52a696

Please sign in to comment.