mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:15:55 +00:00
Feedparser: Only format fatal errors
This commit is contained in:
@@ -63,7 +63,15 @@ class FeedParser {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->error = $this->format_error($error);
|
$this->error = "";
|
||||||
|
if($error) {
|
||||||
|
foreach(libxml_get_errors() as $error) {
|
||||||
|
if($error->level == LIBXML_ERR_FATAL) {
|
||||||
|
$this->error = $this->format_error($error);
|
||||||
|
break; //break here because currently we only show one error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
libxml_clear_errors();
|
libxml_clear_errors();
|
||||||
|
|
||||||
$this->items = array();
|
$this->items = array();
|
||||||
|
|||||||
Reference in New Issue
Block a user