diff options
author | Andrew Dolgov <[email protected]> | 2009-01-17 18:23:12 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-01-17 18:23:12 +0100 |
commit | 51e196dee92b3eff71f078db510a31be5d0c49c0 (patch) | |
tree | 83b67f78e334de9d8afd081e629fb38213e5b599 /functions.php | |
parent | cd4cc9f6e4040a3f8987287139e2d5aa4180b25d (diff) |
fix ccache_update() failure when called for labels
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/functions.php b/functions.php index 673b0b26e..c738ebe65 100644 --- a/functions.php +++ b/functions.php @@ -5938,7 +5938,6 @@ ccache_update($link, 0, $owner_uid, true); - } else { $result = db_query($link, "SELECT feed_id FROM ttrss_counters_cache WHERE feed_id > 0 AND owner_uid = '$owner_uid'"); @@ -6022,7 +6021,7 @@ WHERE id = feed_id AND $cat_qpart AND ttrss_feeds.owner_uid = '$owner_uid'"); - $unread = db_fetch_result($result, 0, "sv"); + $unread = (int) db_fetch_result($result, 0, "sv"); } else { $unread = (int) getFeedArticles($link, $feed_id, $is_cat, true, $owner_uid); @@ -6041,7 +6040,6 @@ (feed_id, value, owner_uid, updated) VALUES ($feed_id, $unread, $owner_uid, NOW())"); - } if ($feed_id > 0 && $prev_unread != $unread) { |