diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-08-04 14:47:14 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-08-04 15:53:55 +0200 |
commit | 4865c52aa6018c377597e2ce466cc5e60121fe61 (patch) | |
tree | 791a3dd4a1598eecfe7fe23fd29ec9b7cfbb0de3 /lib/private/user/session.php | |
parent | f80baf03d4003d6ac2857999ed08f82bb19071be (diff) | |
download | nextcloud-server-4865c52aa6018c377597e2ce466cc5e60121fe61.tar.gz nextcloud-server-4865c52aa6018c377597e2ce466cc5e60121fe61.zip |
Fix isLoggedIn() check for user '0'
Fix #9972
Diffstat (limited to 'lib/private/user/session.php')
-rw-r--r-- | lib/private/user/session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/user/session.php b/lib/private/user/session.php index 5f0dee607ae..226f948efef 100644 --- a/lib/private/user/session.php +++ b/lib/private/user/session.php @@ -105,7 +105,7 @@ class Session implements Emitter, \OCP\IUserSession { return $this->activeUser; } else { $uid = $this->session->get('user_id'); - if ($uid) { + if ($uid !== null) { $this->activeUser = $this->manager->get($uid); return $this->activeUser; } else { |