From d6a607558b77dcb5dab077421455c01c444d975b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 8 Mar 2019 22:05:14 -0500 Subject: [PATCH] Add frio.scheme pconfig value type check - Addresses https://github.com/friendica/friendica/issues/6338#issuecomment-471118589 --- view/theme/frio/php/default.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/theme/frio/php/default.php b/view/theme/frio/php/default.php index b9600cc22e..29d7ab53c1 100644 --- a/view/theme/frio/php/default.php +++ b/view/theme/frio/php/default.php @@ -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; -- 2.39.5