From: stekkel Date: Mon, 14 Oct 2002 22:31:03 +0000 (+0000) Subject: rg=0 fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=07abb0f3c33ceefcd3963129cf0351b73067cfd6;p=squirrelmail.git rg=0 fix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3853 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/move_messages.php b/src/move_messages.php index 11d49864..a3c7ab59 100644 --- a/src/move_messages.php +++ b/src/move_messages.php @@ -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);