diff --git a/lib/public/user.php b/lib/public/user.php index 6228268d75b829b4a0b7af23980784070594dbc3..327e2a773555ae19ccb933b2d6a98c88910efb5e 100644 --- a/lib/public/user.php +++ b/lib/public/user.php @@ -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(); } diff --git a/lib/user/backend.php b/lib/user/backend.php index 36e4bd9f761ae16cb8896faff507206909919d6e..0ef7ccd0468db2cf880c1547e3ee86993a50f906 100644 --- a/lib/user/backend.php +++ b/lib/user/backend.php @@ -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(); } diff --git a/lib/user/dummy.php b/lib/user/dummy.php index da3edfb2df40135a79de8b8a32505d839e6fa918..15a67b7e1ed496a17a5681a659e3dbe9dbb5cbc6 100644 --- a/lib/user/dummy.php +++ b/lib/user/dummy.php @@ -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); } diff --git a/lib/user/interface.php b/lib/user/interface.php index a4903898fb1c5f88908d0e1e1c2a8885ed4326e8..3d9f4691f2414122b0a7801726a3a0ed03c7ba7b 100644 --- a/lib/user/interface.php +++ b/lib/user/interface.php @@ -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