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_twp.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_twp.php')
-rw-r--r-- | plugins/af_comics/filters/af_comics_twp.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/af_comics/filters/af_comics_twp.php b/plugins/af_comics/filters/af_comics_twp.php index ec43c1379..712d54a1d 100644 --- a/plugins/af_comics/filters/af_comics_twp.php +++ b/plugins/af_comics/filters/af_comics_twp.php @@ -10,11 +10,8 @@ class Af_Comics_Twp extends Af_ComicFilter { if (strpos($article["link"], "threewordphrase.com") !== FALSE) { $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("//td/center/img")->item(0); @@ -29,5 +26,4 @@ class Af_Comics_Twp extends Af_ComicFilter { return false; } -} -?> +}
\ No newline at end of file |