mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
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:
parent
c49f73a400
commit
1f5580c528
@ -154,7 +154,8 @@ class accounts extends accounts_backend
|
|||||||
{
|
{
|
||||||
$this->total = $account_search[$serial]['total'];
|
$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]['data'] = parent::search($param);
|
||||||
$account_search[$serial]['total'] = $this->total;
|
$account_search[$serial]['total'] = $this->total;
|
||||||
|
Loading…
Reference in New Issue
Block a user