diff --git a/libraries/common_syndication_parser.inc b/libraries/common_syndication_parser.inc index 77797ffa8e9eaac97b9f9e4cb8e3dc106f9b251d..37bc5bb9eeb1c51db2fee6432608e65e51b3fb23 100644 --- a/libraries/common_syndication_parser.inc +++ b/libraries/common_syndication_parser.inc @@ -97,7 +97,8 @@ function _parser_common_syndication_atom10_parse($feed_XML) { "georss" => "http://www.georss.org/georss", ); - $base = (string) array_shift($feed_XML->xpath("@base")); + $base = $feed_XML->xpath("@base"); + $base = (string) array_shift($base); if (!valid_url($base, TRUE)) { $base = FALSE; }