Fixed some bugs in folder deleting
[squirrelmail.git] / src / folders.php
index f35b84d8a224dfcad694932c1a0a5bb89fed3854..7b9c99bb206d5972f84714c9fc1eb63b0d57a7a8 100644 (file)
@@ -45,7 +45,7 @@
          }
       }
       if ($use_folder == true) {
          }
       }
       if ($use_folder == true) {
-         $box = $boxes[$i]["unformatted"];
+         $box = $boxes[$i]["unformatted-dm"];
          $box2 = replace_spaces($boxes[$i]["formatted"]);
          echo "         <OPTION VALUE=\"$box\">$box2\n";
       }
          $box2 = replace_spaces($boxes[$i]["formatted"]);
          echo "         <OPTION VALUE=\"$box\">$box2\n";
       }
@@ -75,7 +75,7 @@
 
    for ($i = 0; $i < count($boxes); $i++) {
       for ($j = 0; $j < count($boxes[$i]["flags"]); $j++) {
 
    for ($i = 0; $i < count($boxes); $i++) {
       for ($j = 0; $j < count($boxes[$i]["flags"]); $j++) {
-         if ($boxes[$i]["flags"][$j] == "noinferiors") {
+         if ($boxes[$i]["flags"][$j] != "noinferiors") {
             if (($boxes[$i]["unformatted"] == $special_folders[0]) && ($default_sub_of_inbox == true)) {
                $box = $boxes[$i]["unformatted"];
                $box2 = replace_spaces($boxes[$i]["formatted"]);
             if (($boxes[$i]["unformatted"] == $special_folders[0]) && ($default_sub_of_inbox == true)) {
                $box = $boxes[$i]["unformatted"];
                $box2 = replace_spaces($boxes[$i]["formatted"]);