function declaration

This commit is contained in:
Frédéric FRANCE
2018-08-15 14:28:34 +02:00
parent 7c6f41e04f
commit 7bb781eea8
37 changed files with 383 additions and 231 deletions

View File

@@ -6873,7 +6873,8 @@ abstract class CommonObject
* @param array $fieldsentry Properties of field
* @return string
*/
protected function quote($value, $fieldsentry) {
protected function quote($value, $fieldsentry)
{
if (is_null($value)) return 'NULL';
else if (preg_match('/^(int|double|real)/i', $fieldsentry['type'])) return $this->db->escape("$value");
else return "'".$this->db->escape($value)."'";