and back in sync again
[squirrelmail.git] / src / signout.php
index 1fb84845af327a9b1753805eba98724450c5f7c6..ea3b95e0a4bb80832295ca260bc8b4edf4c2ff34 100644 (file)
@@ -39,13 +39,9 @@ if (!isset($frame_top)) {
 
 /* If a user hits reload on the last page, $base_uri isn't set
  * because it was deleted with the session. */
-if (!isset($_SESSION['base_uri'])) {
-    if (!function_exists('sqm_baseuri')){
-        require_once(SM_PATH . 'functions/display_messages.php');
-    }
+if (! sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION) ) {
+    require_once(SM_PATH . 'functions/display_messages.php');
     $base_uri = sqm_baseuri();
-} else {
-    $base_uri = $_SESSION['base_uri'];
 }
 
 do_hook('logout');