mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
fixed bug report by Dros on the german list: using account in ldap, nextmatch (eg. in setting group ACL's) is not working
This commit is contained in:
parent
fd5a8b7510
commit
65c41b525e
@ -551,15 +551,14 @@
|
||||
$this->total = count($accounts);
|
||||
|
||||
// return only the wanted accounts
|
||||
|
||||
if (is_array($sortedAccounts))
|
||||
{
|
||||
reset($sortedAccounts);
|
||||
if(is_int($start) && is_int($offset))
|
||||
if(is_numeric($start) && is_numeric($offset))
|
||||
{
|
||||
return array_slice($sortedAccounts, $start, $offset);
|
||||
}
|
||||
elseif(is_int($start))
|
||||
elseif(is_numeric($start))
|
||||
{
|
||||
return array_slice($sortedAccounts, $start, $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user