fix handling of rss author field

This commit is contained in:
Andrew Dolgov 2007-02-01 06:23:00 +01:00
parent 1aafba1ed8
commit 4d6e91579f
1 changed files with 9 additions and 5 deletions

View File

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