fixed very stupid bug regarding session_register composesession
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 May 2002 23:41:47 +0000 (23:41 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 May 2002 23:41:47 +0000 (23:41 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2894 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/move_messages.php

index fa47d9d..17841ea 100644 (file)
@@ -51,9 +51,9 @@ function attachSelectedMessages($msg, $imapConnection) {
            session_register('attachments');
     }
 
-    if (!isset($composesession)) {
+    if (!isset($composesession) ) {
            $composesession = 1;
-           session_register('$composesession');
+           session_register('composesession');
     } else {
            $composesession++;
     }
@@ -109,8 +109,8 @@ function attachSelectedMessages($msg, $imapConnection) {
                        $newAttachment = array();
                        $newAttachment['localfilename'] = $localfilename;
                        $newAttachment['type'] = "message/rfc822";
-               $newAttachment['remotefilename'] = "$subject".".eml";
-               $newAttachment['session'] = $composesession;
+                       $newAttachment['remotefilename'] = "$subject".".eml";
+                       $newAttachment['session'] = $composesession;
                        $attachments[] = $newAttachment;
                        flush();
            }