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

@ -377,8 +377,10 @@ class Page
}
} else {
array_push ($this->entryArray, Author::getCount());
array_push ($this->entryArray, Serie::getCount());
array_push ($this->entryArray, Tag::getCount());
$series = Serie::getCount();
if (!is_null ($series)) array_push ($this->entryArray, $series);
$tags = Tag::getCount();
if (!is_null ($tags)) array_push ($this->entryArray, $tags);
foreach ($config['cops_calibre_custom_column'] as $lookup) {
$customId = CustomColumn::getCustomId ($lookup);
if (!is_null ($customId)) {