fix wrong sql produced by column_data_implode with param $use_key="VALUES" and numerical indexes in data

This commit is contained in:
Ralf Becker 2013-11-11 08:21:54 +00:00
parent d7a1b12d96
commit e4ee379138

View File

@ -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);