mirror of
https://github.com/Piwigo/piwigo-elegant.git
synced 2026-03-28 17:43:07 +01:00
fixes #1 avoid warning on first visit, when config has been registered
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user