Permalink
Browse files

Auth::get_user() returns null when there is no user. Fixed #3670

  • Loading branch information...
1 parent ee35422 commit aeb815cf8281310f6bae34458157a71c87153c02 @isaiahdw isaiahdw committed Feb 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/kohana/auth.php
View
2 classes/kohana/auth.php
@@ -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);
}
/**

0 comments on commit aeb815c

Please sign in to comment.