From e9c61d87d96223eae9fe46778e40bc29d4591c7b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 12 Jul 2006 18:31:19 +0000 Subject: [PATCH] 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 --- phpgwapi/inc/class.accounts_sql.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index 355c57fb67..15a591e4c3 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -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) {