diff --git a/phpgwapi/inc/class.egw_db.inc.php b/phpgwapi/inc/class.egw_db.inc.php index c849463893..e23cabf016 100644 --- a/phpgwapi/inc/class.egw_db.inc.php +++ b/phpgwapi/inc/class.egw_db.inc.php @@ -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);