Fixed server cron problems when there is set only time from

This commit is contained in:
fermin831 2017-11-20 14:06:40 +01:00
parent 2502944dea
commit 50569f187f
1 changed files with 1 additions and 1 deletions

View File

@ -1428,7 +1428,7 @@ sub cron_is_in_cron {
if ($elem_cron ne '*') {
my ($down, $up) = cron_get_interval($elem_cron);
# Check if there is no a range
return 0 if (!defined($up) && ($down != $cron));
return 0 if (!defined($up) && ($down != $elem_curr_time));
# Check if there is on the range
if ($down < $up) {
return 0 if ($elem_curr_time < $down || $elem_curr_time > $up);