Skip to content

Commit

Permalink
Fixing a syntax error introduced in 1b4e0c9
Browse files Browse the repository at this point in the history
  • Loading branch information
kiall committed Dec 9, 2010
1 parent 5901adb commit 9db24b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/kohana/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ abstract public function check_password($password);
*
* @return mixed
*/
public function get_user($default = new User_Model)
public function get_user($default = FALSE)
{
return $this->_session->get($this->_config['session_key'], $default);
return $this->_session->get($this->_config['session_key'], $default ? $default : new Model_User);
}

/**
Expand Down

0 comments on commit 9db24b6

Please sign in to comment.