fixed error "no accounts/groups shown in admin", reported by Max.Bidlingmaier-at-EasternGraphics.com, if maxmatches not set

This commit is contained in:
Ralf Becker 2006-07-12 15:15:44 +00:00
parent b67d241224
commit c094f15db4

View File

@ -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
{