diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index 007b572a..f36f6a33 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -789,7 +789,8 @@ public function update_user($user_id, $email = FALSE, $pass = FALSE, $name = FAL $this->error($this->CI->lang->line('aauth_error_update_email_exists')); $valid = FALSE; } - if (!valid_email($email)){ + $valid_email = (bool) filter_var($email, FILTER_VALIDATE_EMAIL); + if (!$valid_email){ $this->error($this->CI->lang->line('aauth_error_email_invalid')); $valid = FALSE; }