mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 08:28:43 +01:00
LDAP search to match sql search: If row limit is < 0, don't slice, return all records
This commit is contained in:
parent
a32b7186c2
commit
170d120dd2
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user