]> git.wh0rd.org Git - tt-rss.git/commitdiff
label counters are now uid-aware
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 18 Nov 2005 07:19:34 +0000 (08:19 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 18 Nov 2005 07:19:34 +0000 (08:19 +0100)
backend.php

index ff43bc6fe1ec2445aa828b6ff8fc20f005503499..832dadf06f578f2da679de17e98278f00a79ed9a 100644 (file)
                        error_reporting (0);
 
                        $tmp_result = db_query($link, "SELECT count(id) as count FROM ttrss_entries
-                               WHERE (" . $line["sql_exp"] . ") AND unread = true");
+                               WHERE (" . $line["sql_exp"] . ") AND unread = true AND 
+                               owner_uid = ".$_SESSION["uid"]);
 
                        $count = db_fetch_result($tmp_result, 0, "count");
 
                                        error_reporting (0);
                
                                        $tmp_result = db_query($link, "SELECT count(id) as count FROM ttrss_entries
-                                               WHERE (" . $line["sql_exp"] . ") AND unread = true");
+                                               WHERE (" . $line["sql_exp"] . ") AND unread = true 
+                                               AND owner_uid = '$owner_uid'");
        
                                        $count = db_fetch_result($tmp_result, 0, "count");