summaryrefslogtreecommitdiff
path: root/plugins/af_comics/filters/af_comics_twp.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/af_comics/filters/af_comics_twp.php')
-rw-r--r--plugins/af_comics/filters/af_comics_twp.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/af_comics/filters/af_comics_twp.php b/plugins/af_comics/filters/af_comics_twp.php
index 38a8ca32b..6715be3c2 100644
--- a/plugins/af_comics/filters/af_comics_twp.php
+++ b/plugins/af_comics/filters/af_comics_twp.php
@@ -11,7 +11,9 @@ class Af_Comics_Twp extends Af_ComicFilter {
$doc = new DOMDocument();
- if (@$doc->loadHTML(UrlHelper::fetch($article["link"]))) {
+ $res = UrlHelper::fetch($article["link"]);
+
+ if ($res && $doc->loadHTML($res)) {
$xpath = new DOMXpath($doc);
$basenode = $xpath->query("//td/center/img")->item(0);