empty is better than isset
This commit is contained in:
parent
da4fc0411e
commit
758444a7d2
|
@ -24,7 +24,7 @@ function get_scheme_info($scheme)
|
||||||
{
|
{
|
||||||
$theme = \get_app()->getCurrentTheme();
|
$theme = \get_app()->getCurrentTheme();
|
||||||
$themepath = 'view/theme/' . $theme . '/';
|
$themepath = 'view/theme/' . $theme . '/';
|
||||||
if (!isset($scheme)) {
|
if (empty($scheme)) {
|
||||||
$scheme = PConfig::get(local_user(), 'frio', 'scheme', PConfig::get(local_user(), 'frio', 'scheme'));
|
$scheme = PConfig::get(local_user(), 'frio', 'scheme', PConfig::get(local_user(), 'frio', 'scheme'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue