]> git.wh0rd.org Git - tt-rss.git/commitdiff
properly select next unread feed in feedlist when catching up
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 21 Jan 2009 15:34:19 +0000 (16:34 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 21 Jan 2009 15:34:19 +0000 (16:34 +0100)
backend.php

index 3ce3f4b9030ac3df86c139829077f55586ded983..f47ba00aff7a5645cd53222c2ea8cfc277b63db5 100644 (file)
                                        WHERE id = '$feed' AND owner_uid = ".$_SESSION["uid"]);
                        }
 
-                       print "<headlines id=\"$feed\" is_cat=\"$cat_view\"><![CDATA[";
+                       if (!$next_unread_feed) {
+                               print "<headlines id=\"$feed\" is_cat=\"$cat_view\"><![CDATA[";
+                       } else {
+                               print "<headlines id=\"$next_unread_feed\" is_cat=\"$cat_view\"><![CDATA[";
+                       }
                
                        $override_order = false;