From fac44715bb2144c31c1606f6adc6431713824225 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 18 Jul 2009 12:36:19 +0000 Subject: [PATCH] "Fix for bug #1885: egw_db->row doesn't work as expected reverted r25031, as it returns the first record with numeric indexes (it's anyway a depricated function)" --- phpgwapi/inc/class.egw_db.inc.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_db.inc.php b/phpgwapi/inc/class.egw_db.inc.php index a377bdb793..a8c2025f46 100644 --- a/phpgwapi/inc/class.egw_db.inc.php +++ b/phpgwapi/inc/class.egw_db.inc.php @@ -968,7 +968,17 @@ class egw_db { return False; } - return $strip ? self::strip_array_keys($this->Record,$strip) : $this->Record; + $result = array(); + foreach($this->Record as $column => $value) + { + if (!is_numeric($column)) + { + if ($strip) $column = str_replace($strip,'',$column); + + $result[$column] = $value; + } + } + return $result; } /**