Applied patch by Sven Geuer for the bugs he reported

* Fixes #23, #24, #25, #26
This commit is contained in:
Jan Dittberner 2008-11-16 16:54:08 +00:00
parent 120577d003
commit d2bd1b0ef0
3 changed files with 18 additions and 9 deletions

View file

@ -169,5 +169,7 @@ function cmp_by_usernames(&$user1, &$user2) {
$namemapdata = file_get_contents($davconfig['namemap.file']);
$namemap = json_decode($namemapdata, true);
uasort($namemap, "cmp_by_usernames");
?>
if (is_array($namemap)) {
uasort($namemap, "cmp_by_usernames");
}
?>