Skip to content
Snippets Groups Projects
Commit 2c1f7328 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

use null instead of -1 on all getUser()

parent 828ca2ba
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ class User {
*
* 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();
}
......
......@@ -99,7 +99,7 @@ abstract class OC_User_Backend implements OC_User_Interface {
*
* Get a list of all users.
*/
public function getUsers($search = '', $limit = -1, $offset = 0) {
public function getUsers($search = '', $limit = null, $offset = null) {
return array();
}
......
......@@ -100,7 +100,7 @@ class OC_User_Dummy extends OC_User_Backend {
*
* 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);
}
......
......@@ -48,7 +48,7 @@ interface OC_User_Interface {
*
* 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment