summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTimotheus Pokorra <tp@tbits.net>2015-08-07 15:48:31 +0200
committerTimotheus Pokorra <tp@tbits.net>2015-08-07 15:48:31 +0200
commit2d5efc00698f3c8f87d5b016297d78d455a1f20d (patch)
treee76ffd0dc30b6aceae8bc04b485e642655623b4e /lib
parent793d563bde3a6c028fd27e4b723be84b150e4b2b (diff)
downloadwebadmin-2d5efc00698f3c8f87d5b016297d78d455a1f20d.tar.gz
adding new user: primary_email was not calculated properly
in the change for #5082 normalize_userdata was refactored but then sn=>surname did not work properly anymore
Diffstat (limited to 'lib')
-rw-r--r--lib/kolab_recipient_policy.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/kolab_recipient_policy.php b/lib/kolab_recipient_policy.php
index 036f56a..d9bf1da 100644
--- a/lib/kolab_recipient_policy.php
+++ b/lib/kolab_recipient_policy.php
@@ -64,10 +64,12 @@ class kolab_recipient_policy
}
if (isset($keymap[$key])) {
- $key = $keymap[$key];
+ _$key = $keymap[$key];
+ } else {
+ _$key = $key;
}
- $userdata[$key] = self::normalize($userdata[$key], $userdata['preferredlanguage']);
+ $userdata[_$key] = self::normalize($userdata[$key], $userdata['preferredlanguage']);
}
return $userdata;