diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-31 18:09:39 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-01 00:31:39 +0200 |
commit | 3651fe290c1ac3596280a18b622585cfee3866b0 (patch) | |
tree | 3ba0d3bb53f2a281bad1b322ade6af54d1df2dfb /templates | |
parent | 72192d7c34f73371bfbc0d0d19eb4d5e57df06fe (diff) |
always assure that unreadcount is an integer
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.feeds.php | 2 |
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> |