diff --git a/include/client/header.inc.php b/include/client/header.inc.php
index 72d2ee260fb998d1887dd28c4a304ce270c55d39..30b0273c5d33d8e5d1c410a5af4a1d8c32319d46 100644
--- a/include/client/header.inc.php
+++ b/include/client/header.inc.php
@@ -118,7 +118,7 @@ if (($all_langs = Internationalization::getConfiguredSystemLanguages())
         list($lang, $locale) = explode('_', $code);
         $qs['lang'] = $code;
 ?>
-        <a class="flag flag-<?php echo strtolower($locale ?: $info['flag'] ?: $lang); ?>"
+        <a class="flag flag-<?php echo strtolower($info['flag'] ?: $locale ?: $lang); ?>"
             href="?<?php echo http_build_query($qs);
             ?>" title="<?php echo Internationalization::getLanguageDescription($code); ?>">&nbsp;</a>
 <?php }