Skip to content

Commit e16c393

Browse files
authored
fix unset variable (#7091)
1 parent ce31e1e commit e16c393

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ function get_selected_theme() : string {
782782
}
783783
}
784784

785-
if (!file_exists(CACTI_PATH_INCLUDE . '/themes/' . $theme . '/main.css')) {
785+
if (isset($_SESSION[SESS_USER_ID]) && !file_exists(CACTI_PATH_INCLUDE . '/themes/' . $theme . '/main.css')) {
786786
foreach ($themes as $t => $name) {
787787
if (file_exists(CACTI_PATH_INCLUDE . '/themes/' . $t . '/main.css')) {
788788
$theme = $t;

0 commit comments

Comments
 (0)