From 4d6e91579f1a4fa9ab890896b220bc6fcf3ebbce Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 1 Feb 2007 06:23:00 +0100 Subject: fix handling of rss author field --- functions.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/functions.php b/functions.php index 7d16c2586..0b69fb8de 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) { -- cgit v1.2.3