Merge branch 'ent-1436-opciones-avanzadas-cron-modulos-sinteticos-no-funciona-correctamente-2' into 'develop'

Fixed server cron problems when there is set only time from

See merge request artica/pandorafms!1099
This commit is contained in:
vgilc 2017-11-20 16:36:25 +01:00
commit c7df344de3
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);