From: Andrew Dolgov Date: Fri, 11 Nov 2016 16:47:09 +0000 (+0300) Subject: feedparser: fix syntax error X-Git-Tag: 17.1~34 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=e4071d254444a80288c90897ba89b0ae79bb1183 feedparser: fix syntax error --- diff --git a/classes/feedparser.php b/classes/feedparser.php index 08f8c1de..36ad17f3 100644 --- a/classes/feedparser.php +++ b/classes/feedparser.php @@ -18,7 +18,7 @@ class FeedParser { $encoding = strtolower($matches[2]); - if (in_array($encoding, array_map('strtolower', mb_list_encodings()))) { + if (in_array($encoding, array_map('strtolower', mb_list_encodings()))) $data = mb_convert_encoding($data, 'UTF-8', $encoding); $data = preg_replace('/^<\?xml[\t\n\r ].*?\?>/s', $matches[1] . "UTF-8" . $matches[3] , $data);