From e4ee3791389cba25276b9ffaa1b21d67f5adc5f7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 11 Nov 2013 08:21:54 +0000 Subject: [PATCH] fix wrong sql produced by column_data_implode with param $use_key="VALUES" and numerical indexes in data --- phpgwapi/inc/class.egw_db.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);