summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-08-31 18:09:39 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-09-01 00:31:39 +0200
commit3651fe290c1ac3596280a18b622585cfee3866b0 (patch)
tree3ba0d3bb53f2a281bad1b322ade6af54d1df2dfb /templates
parent72192d7c34f73371bfbc0d0d19eb4d5e57df06fe (diff)
always assure that unreadcount is an integer
Diffstat (limited to 'templates')
-rw-r--r--templates/part.feeds.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/templates/part.feeds.php b/templates/part.feeds.php
index 768db71f5..b1a28ba32 100644
--- a/templates/part.feeds.php
+++ b/templates/part.feeds.php
@@ -35,14 +35,12 @@ $allfeeds = isset($_['allfeeds']) ? $_['allfeeds'] : '';
$feedId = $_['feedid'];
$itemMapper = new OCA\News\ItemMapper();
-$unreadItemCountAll = $itemMapper->countEveryItemByStatus(OCA\News\StatusFlag::UNREAD);
$starredCount = $itemMapper->countEveryItemByStatus(OCA\News\StatusFlag::IMPORTANT);
?>
<li class="subscriptions <?php if($feedId === -2){ echo "selected_feed"; }; ?>">
<a class="title" href="#" ><?php echo $l->t('New articles'); ?></a>
- <span class="unread_items_counter"><?php echo $unreadItemCountAll ?></span>
<span class="buttons">
<button class="svg action feeds_markread" title="<?php echo $l->t('Mark all read'); ?>"></button>
</span>