Update commonobject.class.php

This commit is contained in:
Laurent Destailleur 2020-06-01 20:39:49 +02:00
parent 2984edc752
commit 0f5eed60a2

View File

@ -7915,8 +7915,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)."'";