summaryrefslogtreecommitdiff
path: root/lib/api/kolab_api_service_form_value.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/kolab_api_service_form_value.php')
-rw-r--r--lib/api/kolab_api_service_form_value.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/api/kolab_api_service_form_value.php b/lib/api/kolab_api_service_form_value.php
index a8cea72..2cb1799 100644
--- a/lib/api/kolab_api_service_form_value.php
+++ b/lib/api/kolab_api_service_form_value.php
@@ -1087,14 +1087,15 @@ class kolab_api_service_form_value extends kolab_api_service
// from e.g. adding primary mail address into aliases list
$found = false;
$user = $users[$user_found_dn];
+ $addr = mb_strtolower($addr);
+
unset($user[$attr_name]);
foreach ($user as $attr => $list) {
- foreach ((array) $list as $email) {
- if (compare_email($addr, $email)) {
- $found = true;
- break 2;
- }
+ $list = array_map('mb_strtolower', (array) $list);
+ if (in_array($addr, $list)) {
+ $found = true;
+ break;
}
}