fixed "not working" save in Calendar >> Site config, gave a wrong, but not displayed, validation error

This commit is contained in:
Ralf Becker 2013-06-05 07:22:27 +00:00
parent cf0f1c9cd2
commit ed9513e846
2 changed files with 6 additions and 4 deletions

View File

@ -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';
}
}
}

View File

@ -1,5 +1,7 @@
<!-- BEGIN header -->
<p style="text-align: center; color: red; font-weight: bold;">{error}</p>
<form method="POST" action="{action_url}">
{hidden_vars}
<table border="0" align="center">
<tr class="th">
<td colspan="2"><font color="{th_text}">&nbsp;<b>{title}</b></font></td>