]> git.wh0rd.org - tt-rss.git/commitdiff
get_article_tags: while getting tags from cache check if article entry actually exists
authorAndrew Dolgov <fox@fakecake.org>
Thu, 14 Jan 2016 09:12:35 +0000 (12:12 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Thu, 14 Jan 2016 09:12:35 +0000 (12:12 +0300)
include/functions2.php

index 63b11717e0774ab6600c3fb28cb8956cfc0ec3f8..92ed3f340bccf5ae6732c166d64929ac3bda2367 100755 (executable)
                        $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) {