From 5d0f65358fc233dd3fde24d60cbfc74c846af7a6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 8 Feb 2021 08:33:37 +0300 Subject: [PATCH] revert jimIcon stuff --- lib/jimIcon.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/jimIcon.php b/lib/jimIcon.php index cee1a7bad..f8e533f90 100644 --- a/lib/jimIcon.php +++ b/lib/jimIcon.php @@ -104,11 +104,7 @@ class jimIcon { } // See if we can parse it (might be PNG format here) - // (all this to hide one GD warning) - $er = error_reporting(); - error_reporting(0); - $i = imagecreatefromstring($data); - error_reporting($er); + $i = @imagecreatefromstring($data); if ($i) { imagesavealpha($i, true);