diff --git a/source/php/Controller.php b/source/php/Controller.php index 678ede0..0419b4b 100644 --- a/source/php/Controller.php +++ b/source/php/Controller.php @@ -290,6 +290,10 @@ public function getContacts() { $contacts = $this->getMeta('contact'); + if(!is_array($contacts)) { + return []; + } + array_walk($contacts, function (&$contact) { $contact = (object)$contact; });