fix:bad database quotation for booleans

This commit is contained in:
bahfir abbes 2020-05-12 15:39:17 +01:00
parent 8dbc0ff040
commit e5a51eb732

View File

@ -7551,6 +7551,10 @@ 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';
else return 'false';
}
else return "'".$this->db->escape($value)."'";
}