SF.net SVN: postfixadmin:[1268] trunk/model/PFAHandler.php
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2011-11-12 23:28:09
|
Revision: 1268 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=1268&view=rev Author: christian_boltz Date: 2011-11-12 23:28:03 +0000 (Sat, 12 Nov 2011) Log Message: ----------- PFAHandler.php: - read_from_db(): use associative array for database content (with $this->id_field as key) Modified Paths: -------------- trunk/model/PFAHandler.php Modified: trunk/model/PFAHandler.php =================================================================== --- trunk/model/PFAHandler.php 2011-11-12 22:01:45 UTC (rev 1267) +++ trunk/model/PFAHandler.php 2011-11-12 23:28:03 UTC (rev 1268) @@ -237,7 +237,7 @@ $db_result = array(); if ($result['rows'] != 0) { while ($row = db_assoc ($result['result'])) { - $db_result[] = $row; + $db_result[$row[$this->id_field]] = $row; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |