From f8b8d8c5400983125c94fda47b99933a37f8961c Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 13 Jan 2022 10:32:36 +0000 Subject: make sure to fallback if local_channel and no nav_bg is set --- boot.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boot.php b/boot.php index 16b81c3d0..82cdf6f8f 100644 --- a/boot.php +++ b/boot.php @@ -1187,6 +1187,9 @@ class App { $interval = 80000; $theme_color = ((local_channel()) ? get_pconfig(local_channel(), 'redbasic', 'nav_bg') : App::$theme_info['theme_color']); + if (!$theme_color) { + $theme_color = App::$theme_info['theme_color']; + } if(! isset(self::$page['title']) && isset(self::$config['system']['sitename'])) self::$page['title'] = self::$config['system']['sitename']; -- cgit v1.2.3