summaryrefslogtreecommitdiff
path: root/plugins/af_comics/filters/af_comics_dilbert.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/af_comics/filters/af_comics_dilbert.php')
-rw-r--r--plugins/af_comics/filters/af_comics_dilbert.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/af_comics/filters/af_comics_dilbert.php b/plugins/af_comics/filters/af_comics_dilbert.php
index 31a72d88d..49fa54cfa 100644
--- a/plugins/af_comics/filters/af_comics_dilbert.php
+++ b/plugins/af_comics/filters/af_comics_dilbert.php
@@ -14,14 +14,12 @@ class Af_Comics_Dilbert extends Af_ComicFilter {
false, false, 0,
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0");
- global $fetch_last_error_content;
-
- if (!$res && $fetch_last_error_content)
- $res = $fetch_last_error_content;
+ if (!$res && UrlHelper::$fetch_last_error_content)
+ $res = UrlHelper::$fetch_last_error_content;
$doc = new DOMDocument();
- if (@$doc->loadHTML($res)) {
+ if ($res && $doc->loadHTML($res)) {
$xpath = new DOMXPath($doc);
// Get the image container