fixed bug, that caused accounts::search() to allways return on the first maxmatches accounts, as the underlying contacts::search() and so_sql::search() need the start param to be exact false and not null

This commit is contained in:
Ralf Becker 2006-07-12 18:31:19 +00:00
parent c094f15db4
commit e9c61d87d9

View File

@ -375,7 +375,8 @@ class accounts_backend
}
$accounts = array();
if (($contacts =& $GLOBALS['egw']->contacts->search($criteria,false,$order,'account_lid,account_type',
$wildcard,false,'OR',$offset ? array($start,$offset) : $start,$filter,$this->contacts_join)))
$wildcard,false,'OR',$offset ? array($start,$offset) : is_null($start) ? false : $start,
$filter,$this->contacts_join)))
{
foreach($contacts as $contact)
{