diff options
| author | Andrew Dolgov <fox@madoka.spb.ru> | 2005-11-18 08:19:34 +0100 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.spb.ru> | 2005-11-18 08:19:34 +0100 |
| commit | 655be0736c045b16e7834098f2df260ce11d658d (patch) | |
| tree | 3cc9df6567a0c58699ad6b5991ced41ccfd4fe62 | |
| parent | d5ebcff9a2ec1da6bb210b28726b3621a537e97e (diff) | |
label counters are now uid-aware
| -rw-r--r-- | backend.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backend.php b/backend.php index ff43bc6fe..832dadf06 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"); |