]> git.wh0rd.org Git - tt-rss.git/commitdiff
outputHeadlinesList: properly handle always_display_enclosures when feed_id is null
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 11 Oct 2010 07:24:29 +0000 (11:24 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 11 Oct 2010 07:24:29 +0000 (11:24 +0400)
functions.php

index cdbfa4cae440986c621442839d21cfba99b0256b..527e78f8542804b3045ef5d70544e2499f7c106e 100644 (file)
                                }
 
                                $tmp_result = db_query($link, "SELECT always_display_enclosures FROM
-                                       ttrss_feeds WHERE id = ".$line['feed_id']." AND owner_uid = ".$_SESSION["uid"]);
+                                       ttrss_feeds WHERE id = ".
+                                               (($line['feed_id'] == null) ? $line['orig_feed_id'] : 
+                                                               $line['feed_id'])." AND owner_uid = ".$_SESSION["uid"]);
 
                                $always_display_enclosures = db_fetch_result($tmp_result, 0, "always_display_enclosures");