Skip to content
Permalink
Browse files

AdminEmail: 80 chars/line (except strings).

  • Loading branch information...
Traumflug committed Sep 9, 2019
1 parent 94a7e5e commit 1ef1112d66f922e9a34356b565b8a1eb7d021387
Showing with 4 additions and 2 deletions.
  1. +4 −2 controllers/admin/AdminEmailsController.php
@@ -400,8 +400,10 @@ public function beforeUpdateOptions()
} elseif (Validate::isEmail($bccMail)) {
$bccMails[$index] = $bccMail;
} else {
// There's no need to validate the remaining emails since we have at least one invalid email.
$bccMailsAreValid = false;
// There's no need to validate the remaining emails since
// we have at least one invalid email.
break;
}
}
@@ -410,7 +412,7 @@ public function beforeUpdateOptions()
// Reassign the value with the one that contains trimmed values.
$_POST['TB_BCC_ALL_MAILS_TO'] = implode(';', $bccMails);
} else {
// Make sure not to update the existing value if there's an invalid email.
// Don't update the existing value if there's an invalid email.
unset($_POST['TB_BCC_ALL_MAILS_TO']);
$this->errors[] = Tools::displayError('Make sure email addresses for adding as BCC to all outgoing mails are valid.');
}

0 comments on commit 1ef1112

Please sign in to comment.
You can’t perform that action at this time.