Skip to content
Snippets Groups Projects
Unverified Commit 4d8de208 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4829 from JediKev/issue/sendAccessLink-on-null-v111

issue: sendAccessLink On NULL v1.11
parents 9d990e38 035eabd5
No related branches found
No related tags found
No related merge requests found
......@@ -406,6 +406,8 @@ class Mailer {
if (!is_array($recipients) && (!$recipients instanceof MailingList))
$recipients = array($recipients);
foreach ($recipients as $recipient) {
if ($recipient instanceof ClientSession)
$recipient = $recipient->getSessionUser();
switch (true) {
case $recipient instanceof EmailRecipient:
$addr = sprintf('"%s" <%s>',
......
......@@ -123,6 +123,10 @@ class ClientSession extends EndUser {
$this->session= new UserSession($user->getId());
}
function getSessionUser() {
return $this->user;
}
function isValid(){
global $_SESSION,$cfg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment