Functions: Miskey in valid_email function check.

This commit is contained in:
Nate Jones
2014-11-29 13:01:59 +00:00
parent 53a8cd7777
commit fc2cfaa149

View File

@@ -973,7 +973,7 @@ function number_pad($number,$n) {
}
// validate email address syntax
if(!function_exists('validate_email')) {
if(!function_exists('valid_email')) {
function valid_email($email) {
$regex = '/^[A-z0-9][\w.-]*@[A-z0-9][\w\-\.]+\.[A-z0-9]{2,6}$/';
if ($email != "" && preg_match($regex, $email) == 1) {