Unverified Commit bdfba8a6 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(user-reminder) Fix problem with fdPrivateMail

issue #5942
parent 2cba3f22
......@@ -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