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 3579612 commit cbf491eCopy full SHA for cbf491e
web/inc/main.php
@@ -93,6 +93,10 @@
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
@@ -158,9 +162,6 @@ function top_panel($user, $TAB) {
158
162
$panel = json_decode(implode('', $output), true);
159
163
unset($output);
160
164
161
- unset($_SESSION['userTheme']);
- $_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