summaryrefslogtreecommitdiff
path: root/plugins/acl/acl.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/acl/acl.php')
-rw-r--r--plugins/acl/acl.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php
index 8d5ee2da2..2b1baaa3c 100644
--- a/plugins/acl/acl.php
+++ b/plugins/acl/acl.php
@@ -432,8 +432,10 @@ class acl extends rcube_plugin
if (!empty($this->specials) && in_array($user, $this->specials)) {
$username = $this->gettext($user);
}
- else if (!strpos($user, '@') && ($realm = $this->get_realm())) {
- $user .= '@' . rcube_idn_to_ascii(preg_replace('/^@/', '', $realm));
+ else {
+ if (!strpos($user, '@') && ($realm = $this->get_realm())) {
+ $user .= '@' . rcube_idn_to_ascii(preg_replace('/^@/', '', $realm));
+ }
$username = $user;
}