Browse Source

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

Andrew Dolgov 8 years ago
parent
commit
c352248651
1 changed files with 2 additions and 1 deletions
  1. 2 1
      include/functions2.php

+ 2 - 1
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) {