From 157034d8fec19531e113866e581fd4443a82d7a4 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sat, 12 Nov 2011 23:28:03 +0000 Subject: [PATCH] PFAHandler.php: - read_from_db(): use associative array for database content (with $this->id_field as key) git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1268 a1433add-5e2c-0410-b055-b7f2511e0802 --- model/PFAHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/PFAHandler.php b/model/PFAHandler.php index f9862bd5..6c0610ef 100644 --- a/model/PFAHandler.php +++ b/model/PFAHandler.php @@ -237,7 +237,7 @@ class PFAHandler { $db_result = array(); if ($result['rows'] != 0) { while ($row = db_assoc ($result['result'])) { - $db_result[] = $row; + $db_result[$row[$this->id_field]] = $row; } }