]> git.wh0rd.org - tt-rss.git/commitdiff
getHeadlines: return feed title for non-virtual feeds
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 27 Apr 2013 08:29:42 +0000 (12:29 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 27 Apr 2013 08:29:42 +0000 (12:29 +0400)
classes/api.php

index 2e243d0254d86a3ee231d41bb5e32978897d7865..badd0b5647a610ced9f260a8984cefff32bd1f1e 100644 (file)
@@ -685,7 +685,8 @@ class API extends Handler {
 
                                $headline_row["labels"] = $labels;
 
-                               $headline_row["feed_title"] = $line["feed_title"];
+                               $headline_row["feed_title"] = $line["feed_title"] ? $line["feed_title"] :
+                                       $feed_title;
 
                                $headline_row["comments_count"] = (int)$line["num_comments"];
                                $headline_row["comments_link"] = $line["comments"];