Skip to content

Commit

Permalink
Merge pull request zencart#3619 from scottcwilson/email_notice
Browse files Browse the repository at this point in the history
Prevent notice during send email during currency char substitution
  • Loading branch information
drbyte committed Jul 1, 2020
2 parents 5635dc8 + 00d286e commit 0ec1dd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/functions/functions_email.php
Expand Up @@ -136,6 +136,9 @@ function zen_mail($to_name, $to_address, $email_subject, $email_text, $from_emai
$zen_fix_currencies = preg_split("/[:,]/" , str_replace(' ', '', CURRENCIES_TRANSLATIONS));
$size = sizeof($zen_fix_currencies);
for ($i=0, $n=$size; $i<$n; $i+=2) {
if (empty($zen_fix_currencies[$i+1])) {
break;
}
$zen_fix_current = $zen_fix_currencies[$i];
$zen_fix_replace = $zen_fix_currencies[$i+1];
if (strlen($zen_fix_current)>0) {
Expand Down

0 comments on commit 0ec1dd3

Please sign in to comment.