PHP8 compat fixes for configuration
This commit is contained in:
parent
ef27f70b3d
commit
0303eec81e
@ -502,6 +502,8 @@ function serendipity_printConfigTemplate($config, $from = false, $noForm = false
|
|||||||
|
|
||||||
if (in_array('ignore', $item['flags'])) {
|
if (in_array('ignore', $item['flags'])) {
|
||||||
$item['ignore'] = true;
|
$item['ignore'] = true;
|
||||||
|
} else {
|
||||||
|
$item['ignore'] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array('ifEmpty', $item['flags']) && empty($value)) {
|
if (in_array('ifEmpty', $item['flags']) && empty($value)) {
|
||||||
@ -511,6 +513,7 @@ function serendipity_printConfigTemplate($config, $from = false, $noForm = false
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$data['config'] = $config;
|
$data['config'] = $config;
|
||||||
|
$data['config_groupkeys'] = null;
|
||||||
return serendipity_smarty_show('admin/config_template.tpl', $data);
|
return serendipity_smarty_show('admin/config_template.tpl', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user