From: Michael J. Rubinsky Date: Fri, 24 Dec 2010 17:52:48 +0000 (-0500) Subject: Fix creating the return structure for selectAssoc() in non-pdo drivers X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ba211c1639584dc0cac5425ffc2e343b67569564;p=horde.git Fix creating the return structure for selectAssoc() in non-pdo drivers Fixes Bug: 9378 --- diff --git a/framework/Db/lib/Horde/Db/Adapter/Base.php b/framework/Db/lib/Horde/Db/Adapter/Base.php index f16b0fd21..ce12ef9fe 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Base.php +++ b/framework/Db/lib/Horde/Db/Adapter/Base.php @@ -498,7 +498,7 @@ abstract class Horde_Db_Adapter_Base implements Horde_Db_Adapter $result = $this->selectAll($sql, $arg1, $arg2); $values = array(); foreach ($result as $row) { - $values[next($row)] = next($row); + $values[current($row)] = next($row); } return $values; }