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.
|
* if the user exists at all.
|
||||||
*/
|
*/
|
||||||
public function getUserGroups( $uid ) {
|
public function getUserGroups( $uid ) {
|
||||||
//guests has empty $uid
|
//guests has empty or null $uid
|
||||||
if (empty($uid)) {
|
if ($uid===null || $uid==='') {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue