// Merge -> 10309
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10333 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
2537c72189
commit
9d10de0848
365 files changed
+11185
-1571
No files matched your search
@@ -43,7 +43,7 @@ class ValidateCore
|
||||
* @param string $email e-mail address to validate
|
||||
* @return boolean Validity is ok or not
|
||||
*/
|
||||
public static function isEmail($email)
|
||||
public static function isEmail($email, $required = true)
|
||||
{
|
||||
return !empty($email) AND preg_match('/^[a-z0-9!#$%&\'*+\/=?^`{}|~_-]+[.a-z0-9!#$%&\'*+\/=?^`{}|~_-]*@[a-z0-9]+[._a-z0-9-]*\.[a-z0-9]+$/ui', $email);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user