From c352248651cb539398d50c78a9a07be058516b42 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 14 Jan 2016 12:12:35 +0300 Subject: [PATCH] get_article_tags: while getting tags from cache check if article entry actually exists --- include/functions2.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.2