mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Update images.lib.php
This commit is contained in:
parent
a019996bc8
commit
03fbd68da4
|
|
@ -590,7 +590,7 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName = '_small',
|
|||
break;
|
||||
}
|
||||
|
||||
if (!is_resource($img) && !$img instanceof \GdImage) {
|
||||
if (!is_resource($img) && !($img instanceof \GdImage)) {
|
||||
dol_syslog('Failed to detect type of image. We found infoImg[2]='.$infoImg[2], LOG_WARNING);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user