Fix undefined index in mod/settings

This commit is contained in:
Hypolite Petovan 2018-07-11 22:58:52 -04:00
parent 3001951075
commit 796eb1c874

View File

@ -26,14 +26,12 @@ use Friendica\Util\Temporal;
function get_theme_config_file($theme)
{
$a = get_app();
if (!empty($a->theme_info['extends'])) {
$base_theme = $a->theme_info['extends'];
}
$base_theme = defaults($a->theme_info, 'extends');
if (file_exists("view/theme/$theme/config.php")) {
return "view/theme/$theme/config.php";
}
if (!empty($base_theme) && file_exists("view/theme/$base_theme/config.php")) {
if ($base_theme && file_exists("view/theme/$base_theme/config.php")) {
return "view/theme/$base_theme/config.php";
}
return null;