]> git.wh0rd.org Git - tt-rss.git/commitdiff
simplepie: fix entry_author parsing
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 7 Feb 2008 16:13:42 +0000 (17:13 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 7 Feb 2008 16:13:42 +0000 (17:13 +0100)
functions.php

index 47041088b8a8a2b02a138f25d73c1badcf2bdf4b..0b4a32a44aecbbcc1e210c9988d02ab287a3999b 100644 (file)
                                        $entry_comments = strip_tags($item->data["comments"]);
                                        if ($item->get_author()) {
                                                $entry_author_item = $item->get_author();
-                                               $entry_author = $entry_author_item->get_name();                                                 
+                                               $entry_author = $entry_author_item->get_name();
+                                               if (!$entry_author) $entry_author = $entry_author_item->get_email();
                                        }
                                } else {
                                        $entry_comments = strip_tags($item["comments"]);