// Add the theme color meta
// It makes mobile Chrome UI match Frio's top bar color.
- $uid = $a->profile_uid;
- if (is_null($uid)) {
- $uid = Profile::getThemeUid();
- }
+ $uid = Profile::getThemeUid($a);
$scheme = PConfig::get($uid, 'frio', 'scheme', PConfig::get($uid, 'frio', 'schema'));
- if ($scheme && ($scheme != '---')) {
+ if ($scheme && is_string($scheme) && $scheme != '---') {
if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) {
$schemefile = 'view/theme/frio/scheme/' . $scheme . '.php';
require_once $schemefile;
$nav_bg = PConfig::get($uid, 'frio', 'nav_bg');
}
- if (empty($nav_bg)) {
+ if (empty($nav_bg) || !is_string($nav_bg)) {
$nav_bg = "#708fa0";
}