mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 14:29:02 +01:00
fix wrong sql produced by column_data_implode with param $use_key="VALUES" and numerical indexes in data
This commit is contained in:
parent
d7a1b12d96
commit
e4ee379138
@ -1490,7 +1490,7 @@ class egw_db
|
||||
$keys = $values = array();
|
||||
foreach($array as $key => $data)
|
||||
{
|
||||
if (is_int($key) || !$only || $only === True && isset($column_definitions[$key]) ||
|
||||
if (is_int($key) && $use_key !== 'VALUES' || !$only || $only === True && isset($column_definitions[$key]) ||
|
||||
is_array($only) && in_array($key,$only))
|
||||
{
|
||||
$keys[] = $this->name_quote($key);
|
||||
|
Loading…
Reference in New Issue
Block a user