Update images.lib.php

This commit is contained in:
Laurent Destailleur 2021-06-14 14:05:48 +02:00 committed by GitHub
parent a019996bc8
commit 03fbd68da4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}