Browse Source

* Fixed typo.
* Changed two negations and OR into one negation and AND
- 1/2 the number of negations! :-)

Tyler Akins 24 years ago
parent
commit
f0f30c095d
1 changed files with 6 additions and 6 deletions
  1. 6 6
      functions/imap_mailbox.php

+ 6 - 6
functions/imap_mailbox.php

@@ -258,15 +258,15 @@
 
          // Then list special folders and their subfolders
          for ($i = 0 ; $i <= count($boxes) ; $i++) {
-            if ((!strcasecmp($trash_folder, $boxes[$i]["unformatted"]) ||
-                !strcasecmp($trash_folder . $dm, $boxes[$i]["unformatted"] )
-		&& ($move_to_trash)) {        
+            if (! (strcasecmp($trash_folder, $boxes[$i]["unformatted"]) &&
+                strcasecmp($trash_folder . $dm, $boxes[$i]["unformatted"] ))
+		&& $move_to_trash) {
                $boxesnew[] = $boxes[$i];
                $boxes[$i]["used"] = true;
             }
-            elseif ((!strcasecmp($sent_folder, $boxes[$i]["unformatted"]) ||
-                !strcasecmp($sent_folder . $dm, $boxes[$i]["unformatted"] )
-		&& ($move_to_sent)) {        
+            elseif (! (strcasecmp($sent_folder, $boxes[$i]["unformatted"]) &&
+                strcasecmp($sent_folder . $dm, $boxes[$i]["unformatted"] ))
+		&& $move_to_sent) {        
                $boxesnew[] = $boxes[$i];
                $boxes[$i]["used"] = true;
             }