Only deal with the new user if any ACLs have been set.
authorJan Schneider <jan@horde.org>
Tue, 3 Aug 2010 22:54:06 +0000 (00:54 +0200)
committerJan Schneider <jan@horde.org>
Tue, 3 Aug 2010 22:54:06 +0000 (00:54 +0200)
imp/lib/Prefs/Ui.php

index fbcf9d5..43b3f3e 100644 (file)
@@ -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 {