]> git.wh0rd.org Git - tt-rss.git/commitdiff
getLabelCounters: fix for read labels
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 19 Jan 2009 03:35:33 +0000 (04:35 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 19 Jan 2009 03:35:33 +0000 (04:35 +0100)
functions.php

index e1990d723dba69afd6a8ce7fa9bef9d6342f297d..c43f71aaee76c9a2dea29dd9e835e0826101aadc 100644 (file)
                                        LEFT JOIN ttrss_user_labels2 ON (label_id = ttrss_labels2.id) 
                                                LEFT JOIN ttrss_user_entries ON (ref_id = article_id AND
                                                        unread = true AND
-                                                       ttrss_user_entries.owner_uid = '$owner_uid'),ttrss_feeds
-                                               WHERE ttrss_feeds.id = feed_id AND
-                                                       hidden = false AND                                              
-                                                       ttrss_labels2.owner_uid = '$owner_uid'
+                                                       ttrss_user_entries.owner_uid = '$owner_uid')
+                                               LEFT JOIN ttrss_feeds ON (ttrss_feeds.id = feed_id AND hidden = false)
+                                               WHERE ttrss_labels2.owner_uid = '$owner_uid'
                                        GROUP BY ttrss_labels2.id, caption");
                
                        while ($line = db_fetch_assoc($result)) {