1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-25 11:57:42 +02:00

Feedparser: Add important check for unknown feed type detection

This commit is contained in:
wltb 2013-09-27 00:13:55 +02:00
parent a25c91a4e0
commit 2c6f3c2eb3

View File

@ -93,7 +93,7 @@ class FeedParser {
$root = $xpath->query("(//atom03:feed|//atom:feed|//channel|//rdf:rdf|//rdf:RDF)"); $root = $xpath->query("(//atom03:feed|//atom:feed|//channel|//rdf:rdf|//rdf:RDF)");
if ($root) { if ($root && $root->length > 0) {
$root = $root->item(0); $root = $root->item(0);
if ($root) { if ($root) {