global $compose_new_win;
+if (isset($_SESSION['composesession'])) {
+ $composesession = $_SESSION['composesession'];
+} else {
+ $composesession = 0;
+}
+
function putSelectedMessagesIntoString($msg) {
$j = 0;
$i = 0;
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);