fix:bad database quotation for booleans
This commit is contained in:
parent
69c3b4b4ea
commit
2984edc752
@ -7915,6 +7915,10 @@ abstract class CommonObject
|
|||||||
{
|
{
|
||||||
if (is_null($value)) return 'NULL';
|
if (is_null($value)) return 'NULL';
|
||||||
elseif (preg_match('/^(int|double|real|price)/i', $fieldsentry['type'])) return $this->db->escape("$value");
|
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)."'";
|
else return "'".$this->db->escape($value)."'";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user