mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +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);
|
$this->total = count($accounts);
|
||||||
|
|
||||||
// return only the wanted accounts
|
// return only the wanted accounts
|
||||||
|
|
||||||
if (is_array($sortedAccounts))
|
if (is_array($sortedAccounts))
|
||||||
{
|
{
|
||||||
reset($sortedAccounts);
|
reset($sortedAccounts);
|
||||||
if(is_int($start) && is_int($offset))
|
if(is_numeric($start) && is_numeric($offset))
|
||||||
{
|
{
|
||||||
return array_slice($sortedAccounts, $start, $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']);
|
return array_slice($sortedAccounts, $start, $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user