From 2d6cc439c3a2231891ad3f6bea18dbec1dbba863 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 28 Mar 2010 15:01:58 +0000 Subject: [PATCH] "fixed not working sort" --- phpgwapi/inc/class.accounts_ldap.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index f6db6184cd..2bfefb4aac 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -810,7 +810,8 @@ class accounts_ldap // sort the array $this->_callback_sort = strtoupper($param['sort']); $this->_callback_order = empty($param['order']) ? array('account_lid') : explode(',',$param['order']); - uasort($sortedAccounts=$accounts,array($this,'_sort_callback')); + $sortedAccounts = $accounts; + uasort($sortedAccounts,array($this,'_sort_callback')); $account_search[$unl_serial]['data'] = $sortedAccounts; $account_search[$unl_serial]['total'] = $this->total = isset($totalcount) ? $totalcount : count($accounts);