hardcoded the use of accounts_backend::search for ldap, as method_exists behavior seems to have more to do with php's version-numbers then with the existens of the method ;-)

This commit is contained in:
Ralf Becker 2006-09-20 06:03:06 +00:00
parent c49f73a400
commit 1f5580c528

View File

@ -154,7 +154,8 @@ class accounts extends accounts_backend
{
$this->total = $account_search[$serial]['total'];
}
elseif (method_exists('accounts_backend','search')) // implements its on search function ==> use it
elseif ($GLOBALS['egw_info']['server']['account_repository'] == 'ldap')
//not correct for php<5.1 elseif ((method_exists($this,'search')) // implements its on search function ==> use it
{
$account_search[$serial]['data'] = parent::search($param);
$account_search[$serial]['total'] = $this->total;