diff options
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/nav.php b/include/nav.php index 18fa65edc..737beaca2 100644 --- a/include/nav.php +++ b/include/nav.php @@ -201,7 +201,10 @@ function nav($template = 'default') { $nav['admin'] = ['admin/', t('Admin'), "", t('Site Setup and Configuration'), 'admin_nav_btn']; } - $theme_switch_icon = ((App::$page['color_mode'] === 'dark') ? 'sun' : 'moon'); + $theme_switch_icon = ''; + if (isset(App::$page['color_mode'])) { + $theme_switch_icon = ((App::$page['color_mode'] === 'dark') ? 'sun' : 'moon'); + } $x = ['nav' => $nav, 'usermenu' => $userinfo]; |