From: Andrew Dolgov Date: Fri, 18 Nov 2005 07:19:34 +0000 (+0100) Subject: label counters are now uid-aware X-Git-Tag: schema_feature_freeze_for_1.1~234 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=655be0736c045b16e7834098f2df260ce11d658d;p=tt-rss.git label counters are now uid-aware --- diff --git a/backend.php b/backend.php index ff43bc6f..832dadf0 100644 --- a/backend.php +++ b/backend.php @@ -101,7 +101,8 @@ 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"); @@ -191,7 +192,8 @@ 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");