mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +01:00
small cleanup
This commit is contained in:
parent
b55f6deb14
commit
a0f4331554
@ -456,21 +456,11 @@
|
||||
|
||||
/* Use usort to sort the complete result, since ldap_search can not do that */
|
||||
@set_time_limit(0); /* Try not to die, this can take some time on slow machines... */
|
||||
if(empty($order))
|
||||
{
|
||||
$order_array = 'array("'
|
||||
. $this->stock_contact_fields['n_family'] . '", "'
|
||||
. $this->stock_contact_fields['n_given'] . '", "'
|
||||
. $this->stock_contact_fields['email'] . '")';
|
||||
}
|
||||
else
|
||||
{
|
||||
$order_array = "array('"
|
||||
. $this->stock_contact_fields[$order] . "','"
|
||||
. $this->stock_contact_fields['n_family'] . "', '"
|
||||
$order_array = "array('";
|
||||
if(!empty($order)) $order_array .= $this->stock_contact_fields[$order] . "','";
|
||||
$order_array .= $this->stock_contact_fields['n_family'] . "', '"
|
||||
. $this->stock_contact_fields['n_given'] . "', '"
|
||||
. $this->stock_contact_fields['email'] . "')";
|
||||
}
|
||||
# remove the "count" field from the array, because usort screws up associative arrays
|
||||
unset($ldap_fields['count']);
|
||||
# sort the array
|
||||
|
Loading…
Reference in New Issue
Block a user