]> git.joonet.de Git - adminer.git/commitdiff
Empty translation means identifier
authorJakub Vrana <jakub@vrana.cz>
Mon, 11 Jul 2011 15:33:55 +0000 (17:33 +0200)
committerJakub Vrana <jakub@vrana.cz>
Mon, 11 Jul 2011 15:33:55 +0000 (17:33 +0200)
adminer/include/lang.inc.php

index d0713dcc5c1364f32dbb762633f6c8e530f877c7..4c474197c7fdfc1769d99fcc32a36388e337c283 100644 (file)
@@ -43,7 +43,7 @@ function get_lang() {
 function lang($idf, $number = null) {
        global $LANG, $translations;
        $translation = $translations[$idf];
-       if (is_array($translation) && $translation) {
+       if (is_array($translation)) {
                $pos = ($number == 1 ? 0
                        : ($LANG == 'cs' || $LANG == 'sk' ? ($number && $number < 5 ? 1 : 2) // different forms for 1, 2-4, other
                        : ($LANG == 'fr' ? (!$number ? 0 : 1) // different forms for 0-1, other