allowed '0' uid
This commit is contained in:
parent
74a2938f8e
commit
b7e6c5ecdf
|
@ -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 [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue