From e76c2499876f4f628b157f72979b615bd699ddaf Mon Sep 17 00:00:00 2001 From: Bienvenumoringa Date: Tue, 8 Oct 2024 17:23:37 +0200 Subject: [PATCH] [FIX] output_modules.php : fixing Call to a member function get() on null --- modules/imap/output_modules.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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).'