Update commonobject.class.php

This commit is contained in:
Laurent Destailleur 2022-07-29 15:27:20 +02:00 committed by GitHub
parent 6d2219e00c
commit c181b0bff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8935,7 +8935,7 @@ abstract class CommonObject
} elseif (preg_match('/^(int|double|real|price)/i', $fieldsentry['type'])) {
return price2num("$value");
} elseif (preg_match('/int$/i', $fieldsentry['type'])) {
return (int)$value;
return (int) $value;
} elseif ($fieldsentry['type'] == 'boolean') {
if ($value) {
return 'true';