Skip to content

Commit

Permalink
Auth::get_user() returns null when there is no user. Fixed #3670
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahdw committed Feb 6, 2011
1 parent ee35422 commit aeb815c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/kohana/auth.php
Expand Up @@ -132,7 +132,7 @@ public function logout($destroy = FALSE, $logout_all = FALSE)
*/
public function logged_in($role = NULL)
{
return ($this->get_user() !== FALSE);
return ($this->get_user() !== NULL);
}

/**
Expand Down

0 comments on commit aeb815c

Please sign in to comment.