diff options
author | Andrew Dolgov <[email protected]> | 2009-01-23 14:49:31 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-01-23 14:49:31 +0100 |
commit | 5c432ba490b05c336ae1af9bafee9a6badfbfd99 (patch) | |
tree | 2101d9fa1b87827ebb34f358825ca558b2bd1bc8 /functions.php | |
parent | 307d187c6ca4fd31523ef9b9d0b483021126328c (diff) |
ccache: skip non-numeric feeds (e.g. tags)
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.php b/functions.php index 2b81a10c5..51be96f7a 100644 --- a/functions.php +++ b/functions.php @@ -5684,6 +5684,8 @@ function ccache_find($link, $feed_id, $owner_uid, $is_cat = false, $no_update = false) { + if (!is_numeric($feed_id)) return; + if (!$is_cat) { $table = "ttrss_counters_cache"; } else { @@ -5715,6 +5717,8 @@ function ccache_update($link, $feed_id, $owner_uid, $is_cat = false, $update_pcat = true) { + if (!is_numeric($feed_id)) return; + $prev_unread = ccache_find($link, $feed_id, $owner_uid, $is_cat, true); /* When updating a label, all we need to do is recalculate feed counters |