summaryrefslogtreecommitdiffstats
path: root/lib/user
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2012-09-01 20:49:50 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-09-01 20:50:03 +0200
commit2c1f732880ebb43247bdaec73329777b99bcebf0 (patch)
tree308b978fa40327301e549e1d456ca65a0020898f /lib/user
parent828ca2ba3624d4fb39970a84733dcbb6ab836336 (diff)
downloadnextcloud-server-2c1f732880ebb43247bdaec73329777b99bcebf0.tar.gz
nextcloud-server-2c1f732880ebb43247bdaec73329777b99bcebf0.zip
use null instead of -1 on all getUser()
Diffstat (limited to 'lib/user')
-rw-r--r--lib/user/backend.php2
-rw-r--r--lib/user/dummy.php2
-rw-r--r--lib/user/interface.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/user/backend.php b/lib/user/backend.php
index 36e4bd9f761..0ef7ccd0468 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 da3edfb2df4..15a67b7e1ed 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 a4903898fb1..3d9f4691f24 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