fixed not created "calendar_purge" job, if 0.5 years is selected

This commit is contained in:
Ralf Becker 2011-06-15 13:50:17 +00:00
parent 39080d50f8
commit 18a524bd3e

View File

@ -666,7 +666,7 @@ function calendar_purge_old($config)
// Cancel old purge
ExecMethod('phpgwapi.asyncservice.cancel_timer', $id);
if((int)$config > 0)
if((float)$config > 0)
{
$result = ExecMethod2('phpgwapi.asyncservice.set_timer',
array('month' => '*', 'day' => 1),