projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix missing $username when rg=0
[squirrelmail.git]
/
include
/
load_prefs.php
diff --git
a/include/load_prefs.php
b/include/load_prefs.php
index afc711a5e5d907303dfbec017cc36043fc25cf38..e96d042b8dad99cd624fcbb302cdecb2d044b1dc 100644
(file)
--- 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');
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' );
$custom_css = getPref($data_dir, $username, 'custom_css', 'none' );