Add search and limit to getGroups search in groupExists implementation

This commit is contained in:
Michael Gapczynski 2012-08-07 14:42:11 -04:00
parent b6bbbb4c47
commit 8d56c42fde
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
/**