Merge pull request #21836 from atm-kevin/FIX_Showoutputfield_PHP8

FIX : ShowOutputField PHP8 Warning
This commit is contained in:
Laurent Destailleur 2022-08-22 22:20:55 +02:00 committed by GitHub
commit e7deed38a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1583,7 +1583,7 @@ class ExtraFields
if (!empty($value)) {
//$value=price($value);
$sizeparts = explode(",", $size);
$number_decimals = $sizeparts[1];
$number_decimals = array_key_exists(1, $sizeparts) ? $sizeparts[1] : 0;
$value = price($value, 0, $langs, 0, 0, $number_decimals, '');
}
} elseif ($type == 'boolean') {