Update commonobject.class.php

This commit is contained in:
Laurent Destailleur 2020-06-01 20:39:49 +02:00 committed by GitHub
parent e5a51eb732
commit 2dac87621a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7551,8 +7551,8 @@ abstract class CommonObject
{
if (is_null($value)) return 'NULL';
elseif (preg_match('/^(int|double|real|price)/i', $fieldsentry['type'])) return $this->db->escape("$value");
elseif($fieldsentry['type']=='boolean'){
if($value) return 'true';
elseif ($fieldsentry['type'] == 'boolean') {
if ($value) return 'true';
else return 'false';
}
else return "'".$this->db->escape($value)."'";