mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
* Addressbook/LDAP: fix error if egroupware-epl-compat (old API) not installed
This commit is contained in:
parent
dbc31d5ccb
commit
a23ab6a9fb
@ -872,7 +872,22 @@ class Ldap
|
||||
$order[] = $o;
|
||||
}
|
||||
}
|
||||
$rows = ExecMethod2('phpgwapi.arrayfunctions.arfsort',$rows,$order,$sort);
|
||||
usort($rows, function($a, $b) use ($order, $sort)
|
||||
{
|
||||
foreach($order as $f)
|
||||
{
|
||||
if($sort == 'ASC')
|
||||
{
|
||||
$strc = strcmp($a[$f], $b[$f]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$strc = strcmp($b[$f], $a[$f]);
|
||||
}
|
||||
if ($strc) return $strc;
|
||||
}
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
// if requested ($start !== false) return only limited resultset
|
||||
if (is_array($start))
|
||||
|
Loading…
Reference in New Issue
Block a user