summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2015-08-07 19:31:22 +0200
committerAleksander Machniak <machniak@kolabsys.com>2015-08-07 19:31:22 +0200
commit5dca5b788ac8015c84ec41c8d2117f61290f1129 (patch)
tree2afbbfee7d3bec90e1933a4f44d3f8b402ada3fc
parent2d5efc00698f3c8f87d5b016297d78d455a1f20d (diff)
downloadwebadmin-kolab-webadmin-3.2.8.tar.gz
Small code simplification/fixkolab-webadmin-3.2.8
-rw-r--r--lib/kolab_recipient_policy.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/kolab_recipient_policy.php b/lib/kolab_recipient_policy.php
index d9bf1da..3ddb990 100644
--- a/lib/kolab_recipient_policy.php
+++ b/lib/kolab_recipient_policy.php
@@ -64,12 +64,10 @@ class kolab_recipient_policy
}
if (isset($keymap[$key])) {
- _$key = $keymap[$key];
- } else {
- _$key = $key;
+ $key = $keymap[$key];
}
- $userdata[_$key] = self::normalize($userdata[$key], $userdata['preferredlanguage']);
+ $userdata[$key] = self::normalize($value, $userdata['preferredlanguage']);
}
return $userdata;