From b9533c3d40190525803a05ad573329cc0402631f Mon Sep 17 00:00:00 2001 From: kink Date: Wed, 25 Sep 2002 13:52:57 +0000 Subject: [PATCH] Fix missing $username when rg=0 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3723 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- include/load_prefs.php | 2 +- include/options/index.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 include/options/index.php diff --git a/include/load_prefs.php b/include/load_prefs.php index afc711a5..e96d042b 100644 --- a/include/load_prefs.php +++ b/include/load_prefs.php @@ -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 index 00000000..7e4fc5ca --- /dev/null +++ b/include/options/index.php @@ -0,0 +1,3 @@ + -- 2.25.1