From d0b013767b7ea1d9c4d8432a05b81a9a5cd5162d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 6 Jan 2006 04:52:10 +0000 Subject: [PATCH] fixing the fix: sql strings (integer index) were not used in the where clause on update/insert, causing eg. double entries for file-attachments --- 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 7bc3cf085b..34ae1d8801 100644 --- a/phpgwapi/inc/class.egw_db.inc.php +++ b/phpgwapi/inc/class.egw_db.inc.php @@ -1154,7 +1154,7 @@ $keys = $values = array(); foreach($array as $key => $data) { - if (is_int($key) && $only === false || !$only || $only === True && isset($column_definitions[$key]) || + if (is_int($key) || !$only || $only === True && isset($column_definitions[$key]) || is_array($only) && in_array($key,$only)) { $keys[] = $this->name_quote($key);