mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
empty array on insert/update, store as NULL, or if not allowed whatever value NULL is casted to
This commit is contained in:
parent
3a004a2672
commit
cf6ae6ee77
@ -1524,7 +1524,9 @@ class egw_db
|
||||
}
|
||||
$data[$k] = $this->quote($v,$column_type,$not_null,$maxlength);
|
||||
}
|
||||
$values[] = ($or_null?'(':'').(!count($data) ? '' :
|
||||
$values[] = ($or_null?'(':'').(!count($data) ?
|
||||
// empty array on insert/update, store as NULL, or if not allowed whatever value NULL is casted to
|
||||
$this->quote(null, $column_type, $not_null) :
|
||||
($use_key===True ? $this->name_quote($key).' IN ' : '') .
|
||||
'('.implode(',',$data).')'.($or_null ? ' OR ' : '')).$or_null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user