Index: branches/unlabeled/unlabeled-1.57.2/core/kernel/session/session.php =================================================================== diff -u -r8117 -r8184 --- branches/unlabeled/unlabeled-1.57.2/core/kernel/session/session.php (.../session.php) (revision 8117) +++ branches/unlabeled/unlabeled-1.57.2/core/kernel/session/session.php (.../session.php) (revision 8184) @@ -871,6 +871,7 @@ { return $this->Storage->DeleteExpired(); } + /** * Allows to check if user in this session is logged in or not * @@ -879,6 +880,7 @@ function LoggedIn() { $user_id = $this->RecallVar('user_id'); + $ret = $user_id > 0; if ($this->RecallVar('admin') == 1 && ($user_id == -1)) { $ret = true;