phase 1 of interface improvements -- alternating row colors (needs some work)
[squirrelmail.git] / src / folders_delete.php
index d49be2d31abaaa839112e2a3eeca34a83faac41c..e7d879db70bcb3d6bf0e3c7fa2b65ccade14d0b8 100644 (file)
    else {
       for ($i = 0; $i < count($boxes); $i++) {
          if ($boxes[$i]["unformatted"] == $trash_folder) {
-            $can_move_to_trash = true;
-            for ($j = 0; $j < count($boxes[$i]["flags"]); $j++) {
-               if (strtolower($boxes[$i]["flags"][$j]) == "noinferiors")
-                 $can_move_to_trash = false;
-            }
+            $can_move_to_trash = !in_array('noinferiors', $boxes[$i]['flags']);
          }
       }
    }