use null instead of -1 on all getUser()
This commit is contained in:
parent
828ca2ba36
commit
2c1f732880
|
@ -51,7 +51,7 @@ class User {
|
||||||
*
|
*
|
||||||
* Get a list of all users.
|
* Get a list of all users.
|
||||||
*/
|
*/
|
||||||
public static function getUsers($search = '', $limit = -1, $offset = 0) {
|
public static function getUsers($search = '', $limit = null, $offset = null) {
|
||||||
return \OC_USER::getUsers();
|
return \OC_USER::getUsers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ abstract class OC_User_Backend implements OC_User_Interface {
|
||||||
*
|
*
|
||||||
* Get a list of all users.
|
* Get a list of all users.
|
||||||
*/
|
*/
|
||||||
public function getUsers($search = '', $limit = -1, $offset = 0) {
|
public function getUsers($search = '', $limit = null, $offset = null) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ class OC_User_Dummy extends OC_User_Backend {
|
||||||
*
|
*
|
||||||
* Get a list of all users.
|
* Get a list of all users.
|
||||||
*/
|
*/
|
||||||
public function getUsers($search = '', $limit = -1, $offset = 0) {
|
public function getUsers($search = '', $limit = null, $offset = null) {
|
||||||
return array_keys($this->users);
|
return array_keys($this->users);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ interface OC_User_Interface {
|
||||||
*
|
*
|
||||||
* Get a list of all users.
|
* Get a list of all users.
|
||||||
*/
|
*/
|
||||||
public function getUsers($search = '', $limit = -1, $offset = 0);
|
public function getUsers($search = '', $limit = null, $offset = null);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief check if a user exists
|
* @brief check if a user exists
|
||||||
|
|
Loading…
Reference in New Issue