diff --git a/lib/functions/froxlor/function.checkCrondConfigurationFile.php b/lib/functions/froxlor/function.checkCrondConfigurationFile.php index 6848a43a..0c624a73 100644 --- a/lib/functions/froxlor/function.checkCrondConfigurationFile.php +++ b/lib/functions/froxlor/function.checkCrondConfigurationFile.php @@ -56,18 +56,18 @@ function checkCrondConfigurationFile() { $hour_delay += 3; break; case "DAY": - $cronfile .= $day_delay." 0 */" . $matches[1] . " * * "; - $day_delay += 5; - break; - case "MONTH": if ($row_cronentry['cronfile'] == 'traffic') { // traffic at exactly 0:00 o'clock - $cronfile .= "0 0 0 */" . $matches[1] . " * "; + $cronfile .= "0 0 */" . $matches[1] . " * * "; } else { - $cronfile .= $month_delay." 0 0 */" . $matches[1] . " * "; - $month_delay += 7; + $cronfile .= $day_delay." 0 */" . $matches[1] . " * * "; + $day_delay += 5; } break; + case "MONTH": + $cronfile .= $month_delay." 0 0 */" . $matches[1] . " * "; + $month_delay += 7; + break; case "WEEK": $cronfile .= $day_delay." 0 " . ($matches[1] * 7) . " * * "; $day_delay += 5;