From 2c6f3c2eb304c227bbb1d4bbbf1df8a9879715b1 Mon Sep 17 00:00:00 2001 From: wltb Date: Fri, 27 Sep 2013 00:13:55 +0200 Subject: [PATCH] Feedparser: Add important check for unknown feed type detection --- classes/feedparser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5