Fix missing $username when rg=0
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 25 Sep 2002 13:52:57 +0000 (13:52 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 25 Sep 2002 13:52:57 +0000 (13:52 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3723 7612ce4b-ef26-0410-bec9-ea0150e637f0

include/load_prefs.php
include/options/index.php [new file with mode: 0644]

index afc711a5e5d907303dfbec017cc36043fc25cf38..e96d042b8dad99cd624fcbb302cdecb2d044b1dc 100644 (file)
@@ -18,7 +18,7 @@ require_once(SM_PATH . 'functions/prefs.php');
 require_once(SM_PATH . 'functions/plugin.php');
 require_once(SM_PATH . 'functions/constants.php');
 
-$username = ( !isset($username) ? '' : $username );
+$username = ( !isset($_SESSION['username']) ? '' : $_SESSION['username'] );
 
 $custom_css = getPref($data_dir, $username, 'custom_css', 'none' );
 
diff --git a/include/options/index.php b/include/options/index.php
new file mode 100644 (file)
index 0000000..7e4fc5c
--- /dev/null
@@ -0,0 +1,3 @@
+<?php
+header('Location: ../index.php');
+?>