mirror of
https://github.com/Intervention/image.git
synced 2025-08-21 21:15:11 +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(
|
throw new \Intervention\Image\Exception\NotReadableException(
|
||||||
"Unable to read image from file ({$path})."
|
"Unable to read image from file ({$path})."
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user