From: Andrew Dolgov Date: Thu, 1 Feb 2007 05:23:00 +0000 (+0100) Subject: fix handling of rss author field X-Git-Tag: 1.2.8~13 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4d6e91579f1a4fa9ab890896b220bc6fcf3ebbce;p=tt-rss.git fix handling of rss author field --- diff --git a/functions.php b/functions.php index 7d16c258..0b69fb8d 100644 --- a/functions.php +++ b/functions.php @@ -516,12 +516,16 @@ $entry_author = db_escape_string(strip_tags($item['dc']['creator'])); if ($item['author']) { - if (!$entry_author) { - $entry_author = db_escape_string(strip_tags($item['author']['name'])); - } - if (!$entry_author) { - $entry_author = db_escape_string(strip_tags($item['author']['email'])); + if (is_array($item['author'])) { + + if (!$entry_author) { + $entry_author = db_escape_string(strip_tags($item['author']['name'])); + } + + if (!$entry_author) { + $entry_author = db_escape_string(strip_tags($item['author']['email'])); + } } if (!$entry_author) {