1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 10:11:29 +00:00

Merge pull request #307 from wltb/master

Feedparser: Add important check for unknown feed type detection
This commit is contained in:
Andrew Dolgov
2013-09-26 21:15:42 -07:00

View File

@@ -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) {