1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 14:35:55 +00:00

jimIcon: hide GD warning

This commit is contained in:
Andrew Dolgov
2021-02-08 08:30:04 +03:00
parent 3f972f8fed
commit 479da5aa86
2 changed files with 10 additions and 1 deletions

View File

@@ -104,7 +104,12 @@ class jimIcon {
}
// See if we can parse it (might be PNG format here)
$i = @imagecreatefromstring($data);
// (all this to hide one GD warning)
$er = error_reporting();
error_reporting(0);
$i = imagecreatefromstring($data);
error_reporting($er);
if ($i) {
imagesavealpha($i, true);
return $i;