Skip to content

Commit

Permalink
Converted check_email method to is_available_email
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Thody committed Aug 15, 2009
1 parent 20382cc commit ff1edf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions User.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,11 @@ function is_available_username($username)
* @param string $email
* @return boolean
*/
function check_email($email)
function is_available_email($email)
{
$this->CI->db->where('email', $email);
$this->CI->db->from('users');
return ($this->CI->db->count_all_results() > 0) ? TRUE : FALSE;
return ($this->CI->db->count_all_results() > 0) ? FALSE : TRUE;
}

}
Expand Down

0 comments on commit ff1edf4

Please sign in to comment.