Skip to content

Commit

Permalink
Fixed PHP8 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Oct 5, 2023
1 parent 429a9c7 commit a7c1a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Driver.php
Expand Up @@ -1466,7 +1466,7 @@ protected function addLanguageSwitchPanel($version)

foreach ($this->translatableLangs as $language) {
$value = ($this->fallbackLang == $language) ? '' : $language;
$label = ($this->fallbackLang == $language) ? ($langLabels[$language] . ' (' . $GLOBALS['TL_LANG']['MSC']['defaultLanguage'] . ')') : $langLabels[$language];
$label = ($this->fallbackLang == $language) ? (($langLabels[$language] ?? $language) . ' (' . $GLOBALS['TL_LANG']['MSC']['defaultLanguage'] . ')') : ($langLabels[$language] ?? $language);
$selected = $this->currentLang == $language || ($this->fallbackLang && $this->currentLang == '' && $this->fallbackLang == $language);

// Show the languages that are already translated (fallback is always "translated")
Expand Down

0 comments on commit a7c1a7d

Please sign in to comment.