summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLoki3000 <github@labcms.ru>2017-01-10 16:37:18 +0300
committerGitHub <noreply@github.com>2017-01-10 16:37:18 +0300
commitb7e6c5ecdf5df08197670071c23d5c40aaa8bd02 (patch)
tree1b672d72d11ff26bfb81642568d31bc5731449fa /lib
parent74a2938f8e0cf1abe30f0459c799d104f9861236 (diff)
downloadnextcloud-server-b7e6c5ecdf5df08197670071c23d5c40aaa8bd02.tar.gz
nextcloud-server-b7e6c5ecdf5df08197670071c23d5c40aaa8bd02.zip
allowed '0' uid
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Group/Database.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php
index 203b6d9f937..938c267c7f1 100644
--- a/lib/private/Group/Database.php
+++ b/lib/private/Group/Database.php
@@ -202,8 +202,8 @@ class Database extends \OC\Group\Backend {
* if the user exists at all.
*/
public function getUserGroups( $uid ) {
- //guests has empty $uid
- if (empty($uid)) {
+ //guests has empty or null $uid
+ if ($uid===null || $uid==='') {
return [];
}