summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndré Glüpker <[email protected]>2014-06-14 12:37:05 +0200
committerAndré Glüpker <[email protected]>2014-06-14 12:37:05 +0200
commitd922b09c4356ffb88a3ffbf9a60ebb8f890fd7ce (patch)
tree35977d8094beb6ddf71b6160d3f4990daa563ce0 /classes
parent1fa5c5409ddd36c1ceac6eb8bfcb19f35f89662e (diff)
Skip nested Feed when calling getNextUnreadFeed()
This function is only called when using "Mark all as read". So every time, this function gets called right now, all nested categories get marked as read as well, so we don't want to jump to them. Instead we want to the next category with same or higher tier.
Diffstat (limited to 'classes')
-rw-r--r--classes/pref/feeds.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php
index 6021978b7..43b474278 100644
--- a/classes/pref/feeds.php
+++ b/classes/pref/feeds.php
@@ -55,6 +55,7 @@ class Pref_Feeds extends Handler_Protected {
$cat['unread'] = 0;
$cat['child_unread'] = 0;
$cat['auxcounter'] = 0;
+ $cat['parent_id'] = $cat_id;
$cat['items'] = $this->get_category_items($line['id']);