diff options
author | Andrew Dolgov <[email protected]> | 2016-01-14 12:12:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2016-01-14 12:12:35 +0300 |
commit | c352248651cb539398d50c78a9a07be058516b42 (patch) | |
tree | b40fdb86af230057227e24af64a45a3192c66039 /include | |
parent | 312742db6efc22a844a5f0a9d95f0282722354dc (diff) |
get_article_tags: while getting tags from cache check if article entry actually exists
Diffstat (limited to 'include')
-rwxr-xr-x | include/functions2.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions2.php b/include/functions2.php index 63b11717e..92ed3f340 100755 --- a/include/functions2.php +++ b/include/functions2.php @@ -1121,7 +1121,8 @@ $result = db_query("SELECT tag_cache FROM ttrss_user_entries WHERE ref_id = '$id' AND owner_uid = $owner_uid"); - $tag_cache = db_fetch_result($result, 0, "tag_cache"); + if (db_num_rows($result) != 0) + $tag_cache = db_fetch_result($result, 0, "tag_cache"); } if ($tag_cache) { |