Better getGroups implementation
This commit is contained in:
@@ -43,7 +43,8 @@ class OC_GROUP_SQL extends \OC_Group_Backend implements \OCP\GroupInterface
|
|||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
$rows = $this -> helper -> runQuery('getGroups', array(), false, true);
|
$search = "%".$search."%";
|
||||||
|
$rows = $this -> helper -> runQuery('getGroups', array('search' => $search), false, true, array('limit' => $limit, 'offset' => $offset));
|
||||||
if($rows === false)
|
if($rows === false)
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ class Helper {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'getGroups':
|
case 'getGroups':
|
||||||
$query = "SELECT distinct ".$this->settings['col_group_name']." FROM ".$this->settings['sql_group_table'];
|
$query = "SELECT distinct ".$this->settings['col_group_name']." FROM ".$this->settings['sql_group_table']." WHERE ".$this->settings['col_group_name']." LIKE :search";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'getGroupUsers':
|
case 'getGroupUsers':
|
||||||
|
|||||||
Reference in New Issue
Block a user