diff options
author | Andrew Dolgov <[email protected]> | 2020-10-01 13:20:07 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-10-01 13:20:07 +0300 |
commit | 38a7a1da88904faf9fe5ca3c222e5f27920f3300 (patch) | |
tree | e19932e4847b2993a56c9f8b5b15ce9df72f4f1c /plugins/cache_starred_images/init.php | |
parent | 24cdacd59e748ac49b84066f320563eca34ffe39 (diff) |
hide uninteresting errors in several DOMDocument->loadHTML() invocations
Diffstat (limited to 'plugins/cache_starred_images/init.php')
-rwxr-xr-x | plugins/cache_starred_images/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/cache_starred_images/init.php b/plugins/cache_starred_images/init.php index 5fe963e32..0911825e7 100755 --- a/plugins/cache_starred_images/init.php +++ b/plugins/cache_starred_images/init.php @@ -190,7 +190,7 @@ class Cache_Starred_Images extends Plugin { $has_images = false; $success = false; - if ($doc->loadHTML('<?xml encoding="UTF-8">' . $content)) { + if (@$doc->loadHTML('<?xml encoding="UTF-8">' . $content)) { $xpath = new DOMXPath($doc); $entries = $xpath->query('(//img[@src])|(//video/source[@src])'); |