From: Jan Schneider Date: Tue, 3 Aug 2010 22:54:06 +0000 (+0200) Subject: Only deal with the new user if any ACLs have been set. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4532a2c1aae0044a7c367545726f2d95c6f52dc9;p=horde.git Only deal with the new user if any ACLs have been set. --- diff --git a/imp/lib/Prefs/Ui.php b/imp/lib/Prefs/Ui.php index fbcf9d58e..43b3f3e5a 100644 --- a/imp/lib/Prefs/Ui.php +++ b/imp/lib/Prefs/Ui.php @@ -764,8 +764,8 @@ class IMP_Prefs_Ui $new_user = $ui->vars->new_user; /* Check to see if $new_user already has an acl on the folder. */ - if (strlen($new_user)) { - if (isset($acl_list[$new_user]) && $ui->vars->new_acl) { + if (strlen($new_user) && $ui->vars->new_acl) { + if (isset($acl_list[$new_user])) { $acl_list[$new_user] = $ui->vars->new_acl; } else { try {