summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-01-14 12:12:35 +0300
committerAndrew Dolgov <[email protected]>2016-01-14 12:12:35 +0300
commitc352248651cb539398d50c78a9a07be058516b42 (patch)
treeb40fdb86af230057227e24af64a45a3192c66039 /include
parent312742db6efc22a844a5f0a9d95f0282722354dc (diff)
get_article_tags: while getting tags from cache check if article entry actually exists
Diffstat (limited to 'include')
-rwxr-xr-xinclude/functions2.php3
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) {