mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 21:15:55 +00:00
fix style in feedparser
This commit is contained in:
@@ -42,7 +42,7 @@ class FeedParser {
|
|||||||
|
|
||||||
// some terrible invalid unicode entity?
|
// some terrible invalid unicode entity?
|
||||||
if ($error) {
|
if ($error) {
|
||||||
foreach(libxml_get_errors() as $err) {
|
foreach (libxml_get_errors() as $err) {
|
||||||
if ($err->code == 9) {
|
if ($err->code == 9) {
|
||||||
// remove dangling bytes
|
// remove dangling bytes
|
||||||
$data = mb_convert_encoding($data, 'UTF-8', 'UTF-8');
|
$data = mb_convert_encoding($data, 'UTF-8', 'UTF-8');
|
||||||
@@ -64,9 +64,9 @@ class FeedParser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->error = "";
|
$this->error = "";
|
||||||
if($error) {
|
if ($error) {
|
||||||
foreach(libxml_get_errors() as $error) {
|
foreach (libxml_get_errors() as $error) {
|
||||||
if($error->level == LIBXML_ERR_FATAL) {
|
if ($error->level == LIBXML_ERR_FATAL) {
|
||||||
$this->error = $this->format_error($error);
|
$this->error = $this->format_error($error);
|
||||||
break; //break here because currently we only show one error
|
break; //break here because currently we only show one error
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user