Hide tags & series if there is none. re #63
This commit is contained in:
parent
332e64a82a
commit
32279afc6e
4 changed files with 14 additions and 3 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue