diff --git a/lib/Cake/Controller/Component/AuthComponent.php b/lib/Cake/Controller/Component/AuthComponent.php index f614e4731..123483925 100644 --- a/lib/Cake/Controller/Component/AuthComponent.php +++ b/lib/Cake/Controller/Component/AuthComponent.php @@ -745,7 +745,7 @@ class AuthComponent extends Component { * @return boolean true if the user is logged in, false otherwise */ public function loggedIn() { - return $this->user() != array(); + return (boolean)$this->user(); } /**