summaryrefslogtreecommitdiffstats
path: root/lib/private/user/session.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-08-06 09:53:13 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-08-06 09:53:13 +0200
commita72dae6842d6b550ccc8e8eb9a03f6911ae46d18 (patch)
treecb6dc9d44392498fde33db574e4835d8ad35a7d7 /lib/private/user/session.php
parent6599dc1b5ca57a8460f9e26893e3254a554e03a9 (diff)
parent4865c52aa6018c377597e2ce466cc5e60121fe61 (diff)
downloadnextcloud-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/session.php')
-rw-r--r--lib/private/user/session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/user/session.php b/lib/private/user/session.php
index 8c9b3e264e3..6abf8fb80d2 100644
--- a/lib/private/user/session.php
+++ b/lib/private/user/session.php
@@ -106,7 +106,7 @@ class Session implements IUserSession, Emitter {
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 {