From bfd4981433074619b5221bbd362435bdb416927f Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 13 Nov 2011 22:15:04 +0000 Subject: [PATCH] PFAHandler.php: - fix view() to use associative array key git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1273 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 6c0610ef..4c1fbe81 100644 --- a/model/PFAHandler.php +++ b/model/PFAHandler.php @@ -254,7 +254,7 @@ class PFAHandler { public function view($errors=true) { $result = $this->read_from_db(array($this->id_field => $this->id) ); if (count($result) == 1) { - $this->return = $result[0]; + $this->return = $result[$this->id]; return true; }