diff --git a/calendar/inc/class.calendar_hooks.inc.php b/calendar/inc/class.calendar_hooks.inc.php index f20ad1835a..e00d7b78b0 100644 --- a/calendar/inc/class.calendar_hooks.inc.php +++ b/calendar/inc/class.calendar_hooks.inc.php @@ -728,9 +728,9 @@ function calendar_purge_old($config) 'calendar.calendar_boupdate.purge', (float)$config ); - } - if(!$result) - { - $GLOBALS['config_error'] = 'Unable to schedule purge'; + if(!$result) + { + $GLOBALS['config_error'] = 'Unable to schedule purge'; + } } } diff --git a/calendar/templates/default/config.tpl b/calendar/templates/default/config.tpl index 4359e09ee8..3009886b71 100644 --- a/calendar/templates/default/config.tpl +++ b/calendar/templates/default/config.tpl @@ -1,5 +1,7 @@ +
{error}