summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-02-01 06:23:00 +0100
committerAndrew Dolgov <[email protected]>2007-02-01 06:23:00 +0100
commit4d6e91579f1a4fa9ab890896b220bc6fcf3ebbce (patch)
tree07bb7ccd02a6e7e1411bfc04b42ca3efe44484d2
parent1aafba1ed8b04f4708be13cc0b45c23a1c7a05bc (diff)
fix handling of rss author field
-rw-r--r--functions.php14
1 files 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) {