summaryrefslogtreecommitdiff
path: root/lib/plugins/authldap/auth.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-02-15 12:36:15 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-02-15 12:46:26 +0100
commit9a2c73e86d2549a2cd63d7f772b4bb1a3956e46f (patch)
tree203252db3a011376107ea8f2acb3d707b3f6f677 /lib/plugins/authldap/auth.php
parent3593102dfd174c90f99e841f66b60269bfb03be9 (diff)
downloadrpg-9a2c73e86d2549a2cd63d7f772b4bb1a3956e46f.tar.gz
rpg-9a2c73e86d2549a2cd63d7f772b4bb1a3956e46f.tar.bz2
streamlined retrieveUsers() signature over all auth plugins FS#2919
Diffstat (limited to 'lib/plugins/authldap/auth.php')
-rw-r--r--lib/plugins/authldap/auth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/authldap/auth.php b/lib/plugins/authldap/auth.php
index 94f3be8d2..6c3637e15 100644
--- a/lib/plugins/authldap/auth.php
+++ b/lib/plugins/authldap/auth.php
@@ -281,7 +281,7 @@ class auth_plugin_authldap extends DokuWiki_Auth_Plugin {
* @param array $filter array of field/pattern pairs, null for no filter
* @return array of userinfo (refer getUserData for internal userinfo details)
*/
- function retrieveUsers($start = 0, $limit = -1, $filter = array()) {
+ function retrieveUsers($start = 0, $limit = 0, $filter = array()) {
if(!$this->_openLDAP()) return false;
if(is_null($this->users)) {
@@ -316,7 +316,7 @@ class auth_plugin_authldap extends DokuWiki_Auth_Plugin {
}
if($this->_filter($user, $info)) {
$result[$user] = $info;
- if(($limit >= 0) && (++$count >= $limit)) break;
+ if(($limit > 0) && (++$count >= $limit)) break;
}
}
return $result;