From: Jeroen De Meerleer Date: Wed, 10 Jul 2019 14:51:18 +0000 (+0200) Subject: Using global $nav_bg if undefined X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9b7b718b43e4e368748a4282fbd7ebaf07205a3e;p=friendica.git Using global $nav_bg if undefined --- diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index b297fcb481..231e92a242 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -53,6 +53,10 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser"; $nav_bg = PConfig::get($uid, 'frio', 'nav_bg'); } + if (empty($nav_bg)) { + $nav_bg = Config::get('frio', 'nav_bg'); + } + if (empty($nav_bg) || !is_string($nav_bg)) { $nav_bg = "#708fa0"; }