Update commonobject.class.php
This commit is contained in:
parent
2984edc752
commit
0f5eed60a2
@ -7915,8 +7915,8 @@ 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'){
|
elseif ($fieldsentry['type'] == 'boolean') {
|
||||||
if($value) return 'true';
|
if ($value) return 'true';
|
||||||
else return 'false';
|
else return 'false';
|
||||||
}
|
}
|
||||||
else return "'".$this->db->escape($value)."'";
|
else return "'".$this->db->escape($value)."'";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user