diff --git a/lib/group/backend.php b/lib/group/backend.php index 3f2909caa1..73fc402a9a 100644 --- a/lib/group/backend.php +++ b/lib/group/backend.php @@ -115,7 +115,7 @@ abstract class OC_Group_Backend implements OC_Group_Interface { * @return bool */ public function groupExists($gid){ - return in_array($gid, $this->getGroups()); + return in_array($gid, $this->getGroups($gid, 1)); } /**