rg=0 fix
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 14 Oct 2002 22:31:03 +0000 (22:31 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 14 Oct 2002 22:31:03 +0000 (22:31 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3853 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/move_messages.php

index 11d498649b755eef040e21fc54ed8ddc11923a52..a3c7ab5943ee334bc8e2ca22b7c7a0c34ecdbcc4 100644 (file)
@@ -22,6 +22,12 @@ require_once(SM_PATH . 'functions/html.php');
 
 global $compose_new_win;
 
+if (isset($_SESSION['composesession'])) {
+    $composesession = $_SESSION['composesession'];
+} else {
+    $composesession = 0;
+} 
+
 function putSelectedMessagesIntoString($msg) {
     $j = 0;
     $i = 0;
@@ -55,11 +61,12 @@ function attachSelectedMessages($msg, $imapConnection) {
             sqsession_register($compose_messages,'compose_messages');
     }
 
-    if (!isset($composesession) ) {
+    if (!$composesession) {
            $composesession = 1;
             sqsession_register($composesession,'composesession');          
     } else {
            $composesession++;
+           sqsession_register($composesession,'composesession');           
     }
 
     $hashed_attachment_dir = getHashedDir($username, $attachment_dir, $composesession);