diff --git a/classes/feedparser.php b/classes/feedparser.php index 4eaeb242..1c97e496 100644 --- a/classes/feedparser.php +++ b/classes/feedparser.php @@ -93,7 +93,7 @@ class FeedParser { $root = $xpath->query("(//atom03:feed|//atom:feed|//channel|//rdf:rdf|//rdf:RDF)"); - if ($root) { + if ($root && $root->length > 0) { $root = $root->item(0); if ($root) {