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) {