Skip to content

Commit

Permalink
Fix for depreciated valid_email function
Browse files Browse the repository at this point in the history
Fix for depreciated valid_email function
  • Loading branch information
lostlian authored and lostlian committed Oct 10, 2015
1 parent 205380b commit dce098f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dce098f

Please sign in to comment.