mirror of
https://github.com/Intervention/image.git
synced 2025-08-21 05:01:20 +02:00
changed check on initFromPath error in GD decoder
This commit is contained in:
@@ -42,7 +42,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
|
||||
);
|
||||
}
|
||||
|
||||
if ($core === false) {
|
||||
if (empty($core)) {
|
||||
throw new \Intervention\Image\Exception\NotReadableException(
|
||||
"Unable to read image from file ({$path})."
|
||||
);
|
||||
|
Reference in New Issue
Block a user