allowed '0' uid

This commit is contained in:
Loki3000 2017-01-10 16:37:18 +03:00 committed by GitHub
parent 74a2938f8e
commit b7e6c5ecdf
1 changed files with 2 additions and 2 deletions

View File

@ -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 [];
}