summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libraries/common_syndication_parser.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/common_syndication_parser.inc b/libraries/common_syndication_parser.inc
index cec964c..bee2864 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;
}