Commit 0b20cfb6 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #12 in ZP/z-push from bugfix/ZP-646-backendsearchldap-bad-range-limit to develop

* commit '6ed7292c':
  fix(ZP-646): BackendSearchLDAP uses bad range limit

(cherry picked from commit 08dddcd7)
parent c1ac0551
......@@ -138,7 +138,7 @@ class BackendSearchLDAP implements ISearchProvider {
$querycnt = $searchresult['count'];
//do not return more results as requested in range
$querylimit = (($rangeend + 1) < $querycnt) ? ($rangeend + 1) : $querycnt;
$items['range'] = $rangestart.'-'.($querycnt-1);
$items['range'] = $rangestart.'-'.($querylimit-1);
$items['searchtotal'] = $querycnt;
$rc = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment