mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 17:08:34 +01:00
* Admin/ActiveDirectory: fixed only first N accounts where shown and turned accidently switched off caching in session on again
This commit is contained in:
parent
6291318635
commit
7b9bcffb74
@ -783,8 +783,8 @@ class accounts_ads
|
||||
*/
|
||||
function search($param)
|
||||
{
|
||||
//echo "<p>accounts_ldap::search(".print_r($param,true)."): ".microtime()."</p>\n";
|
||||
$account_search = array();//&$this->cache['account_search'];
|
||||
//error_log(__METHOD__.'('.array2string($param).')');
|
||||
$account_search = &$this->cache['account_search'];
|
||||
|
||||
// check if the query is cached
|
||||
$serial = serialize($param);
|
||||
@ -892,9 +892,11 @@ class accounts_ads
|
||||
if(is_numeric($start) && is_numeric($offset))
|
||||
{
|
||||
$account_search[$serial]['data'] = array_slice($sortedAccounts, $start, $offset);
|
||||
$account_search[$serial]['total'] = $this->total = count($account_search[$serial]['data']);
|
||||
$account_search[$serial]['total'] = $this->total;
|
||||
//error_log(__METHOD__.'('.array2string($param).") returning $offset/$this->total entries from $start ".array2string($account_search[$serial]['data']));
|
||||
return $account_search[$serial]['data'];
|
||||
}
|
||||
//error_log(__METHOD__.'('.array2string($param).') returning all '.array2string($sortedAccounts));
|
||||
return $sortedAccounts;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user