From 38a7a1da88904faf9fe5ca3c222e5f27920f3300 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 1 Oct 2020 13:20:07 +0300 Subject: hide uninteresting errors in several DOMDocument->loadHTML() invocations --- plugins/cache_starred_images/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/cache_starred_images') 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('' . $content)) { + if (@$doc->loadHTML('' . $content)) { $xpath = new DOMXPath($doc); $entries = $xpath->query('(//img[@src])|(//video/source[@src])'); -- cgit v1.2.3-54-g00ecf