updated email options
This commit is contained in:
@@ -52,7 +52,7 @@ function prepare_emails_CIPF($email_name, $user_id) {
|
||||
|
||||
|
||||
$emails = array();
|
||||
if ($email['notification_send']) {
|
||||
if (isset($email['notification_send']) && $email['notification_send'] === 'on') {
|
||||
$tmp_email = array();
|
||||
$tmp_email['to'] = $email['notification_to'];
|
||||
$tmp_email['subject'] = $email['notification_subject'];
|
||||
@@ -69,7 +69,7 @@ function prepare_emails_CIPF($email_name, $user_id) {
|
||||
}
|
||||
$emails[] = $tmp_email;
|
||||
}
|
||||
if ($email['confirmation_send']) {
|
||||
if (isset($email['confirmation_send']) && $email['confirmation_send'] === 'on') {
|
||||
$tmp_email = array();
|
||||
$tmp_email['to'] = $user_email;
|
||||
$tmp_email['subject'] = $email['confirmation_subject'];
|
||||
|
||||
Reference in New Issue
Block a user