Commit 3d5d85a1 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '5942-error-for-user-reminder-about-smarty' into '1.3-fixes'

Resolve "Error for user-reminder about smarty"

See merge request fusiondirectory/fd-plugins!507
parents 2cba3f22 bdfba8a6
......@@ -153,12 +153,15 @@ class expiredUserPostpone extends standAlonePage
if (isset($userTabs->by_object['mailAccount'])) {
$email_address = $userTabs->by_object['mailAccount']->mail;
} elseif ($this->use_alternate && isset($userTabs->by_object['mailAccount']) && !empty($userTabs->by_object['mailAccount']->gosaMailAlternateAddress)) {
$email_address = reset($userTabs->by_object['mailAccount']->gosaMailAlternateAddress);
$email_address = $userTabs->by_object['mailAccount']->gosaMailAlternateAddress;
} elseif (isset($userTabs->by_object['supannAccount']) && !empty($userTabs->by_object['supannAccount']->supannAutreMail)) {
$email_address = reset($userTabs->by_object['supannAccount']->supannAutreMail);
$email_address = $userTabs->by_object['supannAccount']->supannAutreMail;
} elseif (isset($userTabs->by_object['personalInfo']) && !empty($userTabs->by_object['personalInfo']->fdPrivateMail)) {
$email_address = $userTabs->by_object['personalInfo']->fdPrivateMail;
}
if (is_array($email_address)) {
$email_address = reset($email_address);
}
$manager_mail = '';
if ($this->forward_postpone) {
......
Markdown is supported
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