Skip to content
Snippets Groups Projects
Commit 33c26833 authored by André Lahmann's avatar André Lahmann
Browse files

* fixed crash on non existant profile email address while processing EmailHold

parent f92fea10
No related merge requests found
...@@ -160,8 +160,9 @@ trait EmailHoldTrait ...@@ -160,8 +160,9 @@ trait EmailHoldTrait
$details['patron']['firstname'] . $details['patron']['firstname'] .
" | Signatur: " . $details['callnumber']; " | Signatur: " . $details['callnumber'];
$from = $reply = (isset($details['patron']['email'])) $from = $reply = (isset($details['patron']['email'])
? new Address( && !empty($details['patron']['email'])
) ? new Address(
$details['patron']['email'], $details['patron']['email'],
$details['patron']['firstname'] . ' ' . $details['patron']['lastname'] $details['patron']['firstname'] . ' ' . $details['patron']['lastname']
) : new Address($emailProfile->from) ; ) : new Address($emailProfile->from) ;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment