We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac58769 commit 9213e9fCopy full SHA for 9213e9f
web/inc/main.php
@@ -93,10 +93,6 @@
93
$user = $_SESSION['user'];
94
}
95
96
-if (isset($panel[$user]['THEME'])) {
97
- $_SESSION['userTheme'] = $panel[$user]['THEME'];
98
-}
99
-
100
if (isset($_SESSION['look']) && ($_SESSION['userContext'] === 'admin')) {
101
$user = $_SESSION['look'];
102
@@ -162,6 +158,10 @@ function top_panel($user, $TAB) {
162
158
$panel = json_decode(implode('', $output), true);
163
159
unset($output);
164
160
161
+ if (isset($panel[$user]['THEME'])) {
+ $_SESSION['userTheme'] = $panel[$user]['THEME'];
+ }
+
165
// Set home location URLs
166
if (($_SESSION['userContext'] === 'admin') && (!isset($_SESSION['look']))) {
167
// Display users list for administrators unless they are impersonating a user account
0 commit comments