mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-25 12:51:29 +00:00
Switch FeedParser back to described behavior for setting 'error'.
Also some formatting.
This commit is contained in:
@@ -42,8 +42,10 @@ class FeedParser {
|
||||
if ($error) {
|
||||
foreach (libxml_get_errors() as $error) {
|
||||
if ($error->level == LIBXML_ERR_FATAL) {
|
||||
if ($this->error) //currently only the first error is reported
|
||||
// currently only the first error is reported
|
||||
if (!isset($this->error)) {
|
||||
$this->error = $this->format_error($error);
|
||||
}
|
||||
$this->libxml_errors[] = $this->format_error($error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user