[FIX] Undefined index in Mail Class
This commit is contained in:
parent
048ad3a71a
commit
084bf67dc7
@ -62,7 +62,7 @@ class Mail extends Base {
|
||||
$headers = 'From: Website Administration <' . $this->setting->getValue('website_email') . ">\n";
|
||||
$headers .= "MIME-Version: 1.0\n";
|
||||
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
|
||||
if (strlen($aData['senderName']) > 0 && strlen($aData['senderEmail']) > 0 )
|
||||
if (strlen(@$aData['senderName']) > 0 && @strlen($aData['senderEmail']) > 0 )
|
||||
$headers .= 'Reply-To: ' . $aData['senderName'] . ' <' . $aData['senderEmail'] . ">\n";
|
||||
if (mail($aData['email'], $this->smarty->fetch(BASEPATH . 'templates/mail/subject.tpl'), $this->smarty->fetch(BASEPATH . 'templates/mail/' . $template . '.tpl'), $headers))
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user