Skip to content

Commit

Permalink
Issue #897 added error message for invalid email address
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Brookbanks committed Nov 10, 2015
1 parent ed885bf commit c4c43e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin/sources/customers.index.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
$customer['registered'] = time();
foreach ($customer as $field => $value) {
if($field == 'email' && !filter_var($value, FILTER_VALIDATE_EMAIL)) {
$GLOBALS['main']->setACPWarning($lang['common']['error_email_invalid']);
$error = true;
}
if (in_array($field, $required) && empty($value)) {
Expand Down

0 comments on commit c4c43e3

Please sign in to comment.