0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

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
This commit is contained in:
Christian Boltz 2011-11-13 22:15:04 +00:00
parent 0730cdfc6f
commit bfd4981433

View File

@ -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;
}