diff options
-rw-r--r-- | lib/private/Group/Database.php | 4 |
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 []; } |