From 80418e64127e13ea26252abe95ed306f499a2933 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 32c2b2d1..c3c1d364 100644 --- a/model/PFAHandler.php +++ b/model/PFAHandler.php @@ -764,7 +764,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; }