From: Andrew Dolgov Date: Thu, 14 Jan 2016 09:12:35 +0000 (+0300) Subject: get_article_tags: while getting tags from cache check if article entry actually exists X-Git-Tag: 16.3~56 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c352248651cb539398d50c78a9a07be058516b42;p=tt-rss.git get_article_tags: while getting tags from cache check if article entry actually exists --- diff --git a/include/functions2.php b/include/functions2.php index 63b11717..92ed3f34 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) {