Test if email_validate function exists and fix change the indentation from spaces to tabs.

This commit is contained in:
markjcrane 2015-12-20 22:36:34 -07:00
parent a940f9d3cb
commit 4df39487d0
1 changed files with 13 additions and 11 deletions

View File

@ -1326,6 +1326,7 @@ function number_pad($number,$n) {
}
//email validate
if (!function_exists('email_validate')) {
function email_validate($strEmail){
$validRegExp = '/^[a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,3}$/';
// search email text for regular exp matches
@ -1338,5 +1339,6 @@ function number_pad($number,$n) {
return 1;
}
}
}
?>