From 7c8c49cdffcbf64a9ce6a702c22b58971aad3314 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 12 Jul 2006 15:16:02 +0000 Subject: [PATCH] fixed error "no accounts/groups shown in admin", reported by Max.Bidlingmaier-at-EasternGraphics.com, if maxmatches not set --- phpgwapi/inc/class.accounts_ldap.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index a7fe853ac3..8dc984f30c 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -585,7 +585,9 @@ } elseif(is_numeric($start)) { - return array_slice($sortedAccounts, $start, $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs']); + if (!($maxmatches = $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'])) $maxmatches = 15; + + return array_slice($sortedAccounts, $start, $maxmatchs); } else {