Fixing PHP strict error in _parser_common_syndication_atom10_parse().
authorDave Reid
Wed, 22 Jun 2011 19:05:29 +0000 (14:05 -0500)
committerDave Reid
Wed, 22 Jun 2011 19:05:29 +0000 (14:05 -0500)
libraries/common_syndication_parser.inc

index cec964c..bee2864 100644 (file)
@@ -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;
   }