parent
962d56ce4d
commit
90dbac0f20
1 changed files with 5 additions and 3 deletions
|
@ -117,9 +117,11 @@ if (!empty($errmsgs)) {
|
||||||
errorAsHtml(implode("<br />", $errmsgs));
|
errorAsHtml(implode("<br />", $errmsgs));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function cmp_by_usernames($user1, $user2) {
|
||||||
|
return strcmp($user1['username'], $user2['username']);
|
||||||
|
}
|
||||||
|
|
||||||
$namemapdata = file_get_contents($davconfig['namemap.file']);
|
$namemapdata = file_get_contents($davconfig['namemap.file']);
|
||||||
$namemap = json_decode($namemapdata, true);
|
$namemap = json_decode($namemapdata, true);
|
||||||
if ($namemap === NULL) {
|
uasort($namemap, "cmp_by_usernames");
|
||||||
$namemap = array();
|
|
||||||
}
|
|
||||||
?>
|
?>
|
Loading…
Reference in a new issue