mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 20:35:56 +00:00
fix getLabelUnread (refs #464)
This commit is contained in:
@@ -1579,8 +1579,8 @@
|
|||||||
function getLabelUnread($link, $label_id, $owner_uid = false) {
|
function getLabelUnread($link, $label_id, $owner_uid = false) {
|
||||||
if (!$owner_uid) $owner_uid = $_SESSION["uid"];
|
if (!$owner_uid) $owner_uid = $_SESSION["uid"];
|
||||||
|
|
||||||
$result = "SELECT COUNT(ref_id) FROM ttrss_user_entries, ttrss_user_labels2
|
$result = db_query($link, "SELECT COUNT(ref_id) AS unread FROM ttrss_user_entries, ttrss_user_labels2
|
||||||
WHERE owner_uid = '$owner_uid' AND unread = true AND label_id = '$label_id' AND article_id = ref_id";
|
WHERE owner_uid = '$owner_uid' AND unread = true AND label_id = '$label_id' AND article_id = ref_id");
|
||||||
|
|
||||||
if (db_num_rows($result) != 0) {
|
if (db_num_rows($result) != 0) {
|
||||||
return db_fetch_result($result, 0, "unread");
|
return db_fetch_result($result, 0, "unread");
|
||||||
|
|||||||
Reference in New Issue
Block a user