Hide tags & series if there is none. re #63

This commit is contained in:
Sébastien Lucas 2013-05-21 09:10:05 +02:00
parent 332e64a82a
commit 32279afc6e
4 changed files with 14 additions and 3 deletions

View file

@ -29,6 +29,7 @@ class Serie extends Base {
public static function getCount() {
$nSeries = parent::getDb ()->query('select count(*) from series')->fetchColumn();
if ($nSeries == 0) return NULL;
$entry = new Entry (localize("series.title"), self::ALL_SERIES_ID,
str_format (localize("series.alphabetical", $nSeries), $nSeries), "text",
array ( new LinkNavigation ("?page=".parent::PAGE_ALL_SERIES)));