From c03a42e327e9870a852d27a5e0829aee5769502f Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sat, 14 Sep 2019 21:19:39 +0100 Subject: [PATCH] try and avoid hitting : https://github.com/postfixadmin/postfixadmin/issues/51 --- model/PFAHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/PFAHandler.php b/model/PFAHandler.php index 84e719ca..11d2ced0 100644 --- a/model/PFAHandler.php +++ b/model/PFAHandler.php @@ -749,7 +749,7 @@ abstract class PFAHandler { public function view($errors=true) { $result = $this->read_from_db(array($this->id_field => $this->id)); if (count($result) == 1) { - $this->result = $result[$this->id]; + $this->result = reset($result); return true; }