search parameter is not optional
This commit is contained in:
parent
2d9be541ea
commit
4de5e292e5
1 changed files with 2 additions and 2 deletions
|
@ -162,7 +162,7 @@ class Group {
|
||||||
* @param int $offset
|
* @param int $offset
|
||||||
* @return \OC\User\User[]
|
* @return \OC\User\User[]
|
||||||
*/
|
*/
|
||||||
public function searchUsers($search = '', $limit = null, $offset = null) {
|
public function searchUsers($search, $limit = null, $offset = null) {
|
||||||
$users = array();
|
$users = array();
|
||||||
foreach ($this->backends as $backend) {
|
foreach ($this->backends as $backend) {
|
||||||
$userIds = $backend->usersInGroup($this->id, $search, $limit, $offset);
|
$userIds = $backend->usersInGroup($this->id, $search, $limit, $offset);
|
||||||
|
@ -190,7 +190,7 @@ class Group {
|
||||||
* @param int $offset
|
* @param int $offset
|
||||||
* @return \OC\User\User[]
|
* @return \OC\User\User[]
|
||||||
*/
|
*/
|
||||||
public function searchDisplayName($search = '', $limit = null, $offset = null) {
|
public function searchDisplayName($search, $limit = null, $offset = null) {
|
||||||
$users = array();
|
$users = array();
|
||||||
foreach ($this->backends as $backend) {
|
foreach ($this->backends as $backend) {
|
||||||
if ($backend->implementsActions(OC_GROUP_BACKEND_GET_DISPLAYNAME)) {
|
if ($backend->implementsActions(OC_GROUP_BACKEND_GET_DISPLAYNAME)) {
|
||||||
|
|
Loading…
Reference in a new issue