summaryrefslogtreecommitdiffstats
path: root/lib/private/group
diff options
context:
space:
mode:
authormacjohnny <estebanmarin@gmx.ch>2014-06-19 13:28:37 +0200
committermacjohnny <estebanmarin@gmx.ch>2014-06-19 13:28:37 +0200
commitc95416897331fc637ba0c4ae0672c5f4da514627 (patch)
treefefcd7e304bb9e13a25b418ee9312b090c12169b /lib/private/group
parent18c7c94b7a2aafbcf3578e5aa76cc937b0e31538 (diff)
downloadnextcloud-server-c95416897331fc637ba0c4ae0672c5f4da514627.tar.gz
nextcloud-server-c95416897331fc637ba0c4ae0672c5f4da514627.zip
Update manager.php
defined $uid in getUserGroupIds
Diffstat (limited to 'lib/private/group')
-rw-r--r--lib/private/group/manager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php
index e6470ae3a4e..e0b563ad488 100644
--- a/lib/private/group/manager.php
+++ b/lib/private/group/manager.php
@@ -189,6 +189,7 @@ class Manager extends PublicEmitter {
* @return array with group names
*/
public function getUserGroupIds($user) {
+ $uid = $user->getUID();
if (isset($this->cachedUserGroups[$uid])) {
return array_keys($this->cachedUserGroups[$uid]);
}