From 4faa6b178298b2572427295e617b66f6826064c1 Mon Sep 17 00:00:00 2001 From: fidian Date: Wed, 17 Jan 2001 17:14:49 +0000 Subject: [PATCH] * Fixed typo. * Changed two negations and OR into one negation and AND - 1/2 the number of negations! :-) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@957 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 2233f238..6e4fe26a 100755 --- a/functions/imap_mailbox.php +++ b/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; } -- 2.25.1