removed $session from glabal because it was messing up the comp_in_new
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Oct 2002 21:05:54 +0000 (21:05 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 15 Oct 2002 21:05:54 +0000 (21:05 +0000)
function

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3866 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php

index 6d92492..7b0998a 100644 (file)
@@ -66,7 +66,7 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) {
 
     global $hide_sm_attributions, $PHP_SELF, $frame_top,
            $compose_new_win, $username, $datadir, $compose_width, $compose_height,
-           $attachemessages, $session, $provider_name, $provider_uri;
+           $attachemessages, $provider_name, $provider_uri;
 
     if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
             global $_SESSION;
@@ -82,7 +82,7 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) {
         $frame_top = '_top';
     }
 
-    if ($session != false) {
+    if ($session) {
        $compose_uri = $base_uri.'src/compose.php?mailbox='. urlencode($mailbox).'&attachedmessages=true&session='."$session";
     } else {
         $compose_uri = $base_uri.'src/compose.php?newmessage=1';