Using global $nav_bg if undefined

This commit is contained in:
Jeroen De Meerleer 2019-07-10 16:51:18 +02:00
parent 1b2b2259b1
commit 9b7b718b43

View file

@ -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";
}