Fix some operator bugs that cause some problems (mainly when forwarding messages).
authorcigamit <cigamit@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 27 Mar 2003 04:01:31 +0000 (04:01 +0000)
committercigamit <cigamit@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 27 Mar 2003 04:01:31 +0000 (04:01 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4688 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php
src/move_messages.php

index 5b8dc135d406940c1f72ec27a2ea5b3d3e1bbe8c..068c57d1111c358d9736e9987cc067dd10a04ae3 100644 (file)
@@ -818,7 +818,7 @@ function getMessage_RFC822_Attachment($message, $composeMessage, $passed_id,
                                      TRUE, $response, $readmessage, $uid_support);
         $message = $message->parent;
     }
-    if ($response = 'OK') {
+    if ($response == 'OK') {
         $subject = encodeHeader($message->rfc822_header->subject);
         array_shift($body_a);
         $body = implode('', $body_a) . "\r\n";
index 135dd42bcc042a16aae67597d9c4f8feb40704ea..d9a2fda19c84743767ac6d6ce597d72becc28d59 100644 (file)
@@ -89,7 +89,7 @@ function attachSelectedMessages($msg, $imapConnection) {
         if (isset($msg[$i])) {
            $id = $msg[$i];
            $body_a = sqimap_run_command($imapConnection, "FETCH $id RFC822",true, $response, $readmessage, $uid_support);
-           if ($response = 'OK') {
+           if ($response == 'OK') {
                $k = $i + $start_index;
                $subject = $msgs[$k]['SUBJECT'];