From c094f15db48194b132b5975fefd66120b29770bc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 12 Jul 2006 15:15:44 +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 50eea9785c..a0cd83d67b 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -611,7 +611,9 @@ class accounts_backend } 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 {