diff options
author | Andrew Dolgov <[email protected]> | 2017-04-27 00:24:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-04-27 00:24:29 +0300 |
commit | 7f4a24f8681f35d25077524692ba2236583cb732 (patch) | |
tree | 41dcc1cc2d3859ad1d8d1fd60b6138c9b520454a /plugins/af_comics/filters/af_comics_tfd.php | |
parent | 891df346377be014bbad14c229421d92cfd332ea (diff) | |
parent | c2744831cd319fb967a83dc643bdb8b25f6c0b02 (diff) |
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'plugins/af_comics/filters/af_comics_tfd.php')
-rw-r--r-- | plugins/af_comics/filters/af_comics_tfd.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/af_comics/filters/af_comics_tfd.php b/plugins/af_comics/filters/af_comics_tfd.php index eeec28fa3..78792d254 100644 --- a/plugins/af_comics/filters/af_comics_tfd.php +++ b/plugins/af_comics/filters/af_comics_tfd.php @@ -15,11 +15,8 @@ class Af_Comics_Tfd extends Af_ComicFilter { if (!$res) return $article; $doc = new DOMDocument(); - @$doc->loadHTML(fetch_file_contents($article["link"])); - - $basenode = false; - if ($doc) { + if (@$doc->loadHTML(fetch_file_contents($article["link"]))) { $xpath = new DOMXPath($doc); $basenode = $xpath->query('//img[contains(@src, ".gif")]')->item(0); @@ -32,5 +29,4 @@ class Af_Comics_Tfd extends Af_ComicFilter { return false; } -} -?> +}
\ No newline at end of file |