]> git.wh0rd.org Git - tt-rss.git/commitdiff
simplepie: fix getting article author
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 23 Aug 2007 12:13:14 +0000 (13:13 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 23 Aug 2007 12:13:14 +0000 (13:13 +0100)
functions.php

index 3a317a79b98a1294ea04351c9d60b3b3a6b1fef5..4bfe953767147e0c59a42fa88d025ab770c01df7 100644 (file)
 
                                if (ENABLE_SIMPLEPIE) {
                                        $entry_comments = strip_tags($item->data["comments"]);
-                                       $entry_author = $item->get_author();
+                                       if ($item->get_author()) {
+                                               $entry_author = $item->get_author()->get_name();
+                                       }
                                } else {
                                        $entry_comments = strip_tags($item["comments"]);