From 74252b5a31346b354e6bfebf84a5cf40f57cf7b1 Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Wed, 13 Jul 2022 08:40:54 -0400 Subject: [PATCH] Fix frio settings display error setting scheme to custom type if null --- view/theme/frio/php/scheme.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/view/theme/frio/php/scheme.php b/view/theme/frio/php/scheme.php index ba0b640a6d..994f2eb147 100644 --- a/view/theme/frio/php/scheme.php +++ b/view/theme/frio/php/scheme.php @@ -42,7 +42,7 @@ function get_scheme_info($scheme) $theme = DI::app()->getCurrentTheme(); $themepath = 'view/theme/' . $theme . '/'; if (empty($scheme)) { - $scheme = DI::pConfig()->get(local_user(), 'frio', 'scheme', DI::pConfig()->get(local_user(), 'frio', 'schema')); + $scheme = DI::pConfig()->get(local_user(), 'frio', 'scheme', DI::pConfig()->get(local_user(), 'frio', 'schema', '---')); } $scheme = Strings::sanitizeFilePathItem($scheme); @@ -56,7 +56,9 @@ function get_scheme_info($scheme) 'accented' => false, ]; - if (!is_file($themepath . 'scheme/' . $scheme . '.php')) return $info; + if (!is_file($themepath . 'scheme/' . $scheme . '.php')) { + return $info; + } $f = file_get_contents($themepath . 'scheme/' . $scheme . '.php');