summaryrefslogtreecommitdiffstats
path: root/templates/part.itemcounter.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/part.itemcounter.php')
-rw-r--r--templates/part.itemcounter.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/part.itemcounter.php b/templates/part.itemcounter.php
index aea9a3b37..ad24a991b 100644
--- a/templates/part.itemcounter.php
+++ b/templates/part.itemcounter.php
@@ -9,7 +9,9 @@ function countUnreadItems($feedid) {
if(!$item->isRead())
++$counter;
}
- echo '<span id="unreaditemcounter">' . $counter . '</span>';
+ if ($counter > 0) {
+ echo '<span id="unreaditemcounter">' . $counter . '</span>';
+ }
}
?> \ No newline at end of file