fixes #1 avoid warning on first visit, when config has been registered

This commit is contained in:
plegall
2019-11-04 12:16:09 +01:00
parent c1d41fa3f7
commit 4916fc48f4

View File

@@ -20,7 +20,7 @@ add_event_handler('init', 'set_config_values_elegant');
function set_config_values_elegant()
{
global $conf, $template;
$config = unserialize( $conf['elegant'] );
$config = safe_unserialize( $conf['elegant'] );
$template->assign( 'elegant', $config );
}