mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 03:13:40 +01:00
* Addressbook/LDAP: fix error if egroupware-epl-compat (old API) not installed
This commit is contained in:
parent
9710ef4f93
commit
677c862d9b
@ -872,7 +872,22 @@ class Ldap
|
|||||||
$order[] = $o;
|
$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 requested ($start !== false) return only limited resultset
|
||||||
if (is_array($start))
|
if (is_array($start))
|
||||||
|
Loading…
Reference in New Issue
Block a user