diff --git a/language.php b/language.php index 8f3a1f5..8991e3c 100644 --- a/language.php +++ b/language.php @@ -29,6 +29,7 @@ class language extends Base { public static function getCount() { $nLanguages = parent::getDb ()->query('select count(*) from languages')->fetchColumn(); + if ($nLanguages == 0) return NULL; $entry = new Entry (localize("languages.title"), self::ALL_LANGUAGES_ID, str_format (localize("languages.alphabetical", $nLanguages), $nLanguages), "text non", array ( new LinkNavigation ("?page=".parent::PAGE_ALL_LANGUAGES)));