Explorar o código

Functions: Miskey in valid_email function check.

Nate Jones %!s(int64=10) %!d(string=hai) anos
pai
achega
538ee559b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      resources/functions.php

+ 1 - 1
resources/functions.php

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