diff options
-rw-r--r-- | application/models/Muser.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/application/models/Muser.php b/application/models/Muser.php index 72bcffde0..e59572f82 100644 --- a/application/models/Muser.php +++ b/application/models/Muser.php @@ -156,8 +156,7 @@ class Muser extends CI_Model { */ public function valid_email($email) { - $this->load->helper("email"); - return valid_email($email); + return $email === filter_var($email, FILTER_VALIDATE_EMAIL); } public function add_user($username, $password, $email, $referrer) |