PHP 8 compatibility fix for installing themes

This commit is contained in:
onli 2021-06-06 21:47:34 +02:00
parent c416ea82d3
commit 323860150d

View File

@ -86,7 +86,7 @@ if (($serendipity['GET']['adminAction'] == 'install' || $serendipity['GET']['adm
// template_engine was set by default to default, which screws up the fallback chain (to the default-template first)
// The "Engine" now only applies to FRONTEND themes. Backend themes will always fall back to our default backend theme only, to ensure proper backend operation.
serendipity_set_config_var('template_engine', null);
if ($themeInfo['engine']) {
if ($themeInfo['engine'] ?? false) {
serendipity_set_config_var('template_engine', $themeInfo['engine']);
}
}