1
0
mirror of https://github.com/EGroupware/egroupware.git synced 2025-03-08 20:21:58 +01:00

"Fix for bug : 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)"
This commit is contained in:
Ralf Becker 2009-07-18 12:33:52 +00:00
parent 48538a6ced
commit cdb601da56

View File

@ -958,7 +958,17 @@ class egw_db
{ {
return False; 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;
} }
/** /**