LDAP search to match sql search: If row limit is < 0, don't slice, return all records

This commit is contained in:
Nathan Gray 2012-09-13 17:59:10 +00:00
parent a32b7186c2
commit 170d120dd2

View File

@ -719,7 +719,7 @@ class addressbook_ldap
{ {
list($start,$offset) = $start; list($start,$offset) = $start;
} }
if(is_numeric($start) && is_numeric($offset)) if(is_numeric($start) && is_numeric($offset) && $offset >= 0)
{ {
return array_slice($rows, $start, $offset); return array_slice($rows, $start, $offset);
} }