diff --git a/modules/imap/output_modules.php b/modules/imap/output_modules.php index 273807b022..2d795e5b1e 100644 --- a/modules/imap/output_modules.php +++ b/modules/imap/output_modules.php @@ -230,7 +230,8 @@ protected function output() { } } - $contact = ($this->get('contact_store'))->get(null, false, $contact_email); + $contact_store = $this->get('contact_store'); + $contact = !$contact_store ? null : $contact_store->get(null, false, $contact_email); $contact_exists = !empty($contact); $txt .= ''.$this->trans($name).'