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