get_article_tags: while getting tags from cache check if article entry actually exists

This commit is contained in:
Andrew Dolgov 2016-01-14 12:12:35 +03:00
parent 312742db6e
commit c352248651
1 changed files with 2 additions and 1 deletions

View File

@ -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) {