1
1
Fork 0

Add frio.scheme pconfig value type check

- Addresses https://github.com/friendica/friendica/issues/6338#issuecomment-471118589
This commit is contained in:
Hypolite Petovan 2019-03-08 22:05:14 -05:00
parent a1f7c1215d
commit d6a607558b

View file

@ -44,7 +44,7 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
// It makes mobile Chrome UI match Frio's top bar color.
$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;