Fix when no languages are found. re #66
This commit is contained in:
parent
0825aae6b6
commit
c937a29d6c
|
@ -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)));
|
||||
|
|
Loading…
Reference in a new issue