fix warnings
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 16 Oct 2002 15:04:27 +0000 (15:04 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 16 Oct 2002 15:04:27 +0000 (15:04 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3878 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/redirect.php

index 85a653c..31e1ab6 100644 (file)
@@ -165,9 +165,11 @@ if ($javascript_setting != SMPREF_JS_ON){
 setPref($data_dir, $username, 'javascript_on', $js_pref);
 
 /* Compute the URL to forward the user to. */
-    $session_expired_location= $_SESSION['session_expired_location'];
-    $session_expired_post= $_SESSION['session_expired_post'];
-
+    if (isset($_SESSION['session_expired_location']) {
+       $session_expired_location= $_SESSION['session_expired_location'];
+    } else {
+       $session_expired_location=false;
+    }
     if (isset($session_expired_location) && $session_expired_location) {
        $compose_new_win = getPref($data_dir, $username, 'compose_new_win', 0);
        if ($compose_new_win) {
@@ -177,8 +179,6 @@ setPref($data_dir, $username, 'javascript_on', $js_pref);
        }
        sqsession_unregister('session_expired_location');
        unset($session_expired_location);
-
-
     } else {
        $redirect_url = 'webmail.php';
     }