diff options
author | Timotheus Pokorra <tp@tbits.net> | 2015-08-07 15:48:31 +0200 |
---|---|---|
committer | Timotheus Pokorra <tp@tbits.net> | 2015-08-07 15:48:31 +0200 |
commit | 2d5efc00698f3c8f87d5b016297d78d455a1f20d (patch) | |
tree | e76ffd0dc30b6aceae8bc04b485e642655623b4e | |
parent | 793d563bde3a6c028fd27e4b723be84b150e4b2b (diff) | |
download | webadmin-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
-rw-r--r-- | lib/kolab_recipient_policy.php | 6 |
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; |