diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-08-06 09:53:13 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-08-06 09:53:13 +0200 |
commit | a72dae6842d6b550ccc8e8eb9a03f6911ae46d18 (patch) | |
tree | cb6dc9d44392498fde33db574e4835d8ad35a7d7 /lib/private/user.php | |
parent | 6599dc1b5ca57a8460f9e26893e3254a554e03a9 (diff) | |
parent | 4865c52aa6018c377597e2ce466cc5e60121fe61 (diff) | |
download | nextcloud-server-a72dae6842d6b550ccc8e8eb9a03f6911ae46d18.tar.gz nextcloud-server-a72dae6842d6b550ccc8e8eb9a03f6911ae46d18.zip |
Merge pull request #10144 from owncloud/issue/9972
Issue/9972 Fix issues with group and username `0`
Diffstat (limited to 'lib/private/user.php')
-rw-r--r-- | lib/private/user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/user.php b/lib/private/user.php index a8431af97fd..5efe205ced9 100644 --- a/lib/private/user.php +++ b/lib/private/user.php @@ -337,7 +337,7 @@ class OC_User { * Checks if the user is logged in */ public static function isLoggedIn() { - if (\OC::$session->get('user_id') && self::$incognitoMode === false) { + if (\OC::$session->get('user_id') !== null && self::$incognitoMode === false) { return self::userExists(\OC::$session->get('user_id')); } return false; |