check object

This commit is contained in:
Garvin Hicking 2016-09-23 10:28:26 +02:00
parent d6e9e0a320
commit 2f2190851c

View file

@ -610,8 +610,10 @@ class serendipity_event_customarchive extends serendipity_event {
$serendipity['GET']['subpage'] = $nice_url;
}
serendipity_smarty_init();
$serendipity['smarty']->register_function('customArchive', array($this, 'smarty_customArchive'));
if (!is_object($serendipity['smarty'])) {
serendipity_smarty_init();
}
$serendipity['smarty']->register_function('customArchive', array($this, 'smarty_customArchive'));
break;