Fixing style errors.

This commit is contained in:
stickler-ci 2023-02-26 10:17:38 +00:00
parent 014aec72c2
commit 9f2c450953

View File

@ -2511,7 +2511,7 @@ function pdf_getSizeForImage($realpath)
include_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
$tmp = dol_getImageSize($realpath);
$width = 0;
$height = 0;
$height = 0;
if ($tmp['height']) {
$width = (int) round($maxheight * $tmp['width'] / $tmp['height']); // I try to use maxheight
if ($width > $maxwidth) { // Pb with maxheight, so i use maxwidth