diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-10-27 12:18:50 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-10-27 12:19:08 +0200 |
commit | 605281da9bb4c575f89113c9f6399c2fe6ca9392 (patch) | |
tree | d1289f2162f14cc6a7c20a95eff510b413979336 /apps/user_ldap/lib | |
parent | 67cd268df92d396f13555e426d2486ba98483a1f (diff) | |
download | nextcloud-server-605281da9bb4c575f89113c9f6399c2fe6ca9392.tar.gz nextcloud-server-605281da9bb4c575f89113c9f6399c2fe6ca9392.zip |
LDAP: let result processing in Access::search slice the array for not-paginated search. getUsers e.g. does not need to take care of it anymore. adjustments in group_ldap to follow.
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r-- | apps/user_ldap/lib/access.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php index 536a5f8def4..d3439451499 100644 --- a/apps/user_ldap/lib/access.php +++ b/apps/user_ldap/lib/access.php @@ -579,8 +579,15 @@ abstract class Access { } } } -// die(var_dump($selection)); - return $selection; + $findings = $selection; + } + if(!$this->pagedSearchedSuccessful + || ( + !is_null($limit) + || !is_null($offset) + ) + ) { + $findings = array_slice($findings, intval($offset), $limit); } return $findings; } |