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 fa47d9d2f05eab6342996f589b80ce9984f1240d..17841ea8673ba33be12ef93256f854417deaa79b 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();
            }