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:16:02 +00:00
parent 906fa09848
commit 7c8c49cdff

View File

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