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