Skip to content

Commit

Permalink
[FIX] output_modules.php : fixing Call to a member function get() on …
Browse files Browse the repository at this point in the history
…null
  • Loading branch information
Bienvenumoringa committed Oct 8, 2024
1 parent 8837a80 commit dfa57a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/imap/output_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ 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 .= '<tr class="header_'.$fld.'"><th>'.$this->trans($name).'
Expand Down

0 comments on commit dfa57a7

Please sign in to comment.