움직이는 webp 이미지를 처리하지 못하면서 발생하는 오류 수정

TypeError #0 "imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, bool given" in modules/document/document.item.php on line 1247 (via classes/file/FileHandler.class.php on line 661)
This commit is contained in:
conory 2021-12-24 18:56:47 +09:00
parent abacd82a6c
commit 8644227a03

View file

@ -583,6 +583,10 @@ class FileHandler
{
return false;
}
if (!$source)
{
return false;
}
// Rotate image
if ($rotate)