From 65c41b525ea2ac3c51e213c5957b7263f46d6351 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 4 Nov 2005 06:57:22 +0000 Subject: [PATCH] fixed bug report by Dros on the german list: using account in ldap, nextmatch (eg. in setting group ACL's) is not working --- phpgwapi/inc/class.accounts_ldap.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index 96904ffb6e..4590273d2c 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -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']); }