We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6d3c92 commit dc97693Copy full SHA for dc97693
server/lib/classes/cron.d/200-logfiles.inc.php
@@ -121,8 +121,8 @@ public function onRunJob() {
121
122
// rename older files (move up by one)
123
$num = $log_retention;
124
- while($num >= 1 && is_file($cron_logfile . '.' . $num . '.gz')) {
125
- rename($cron_logfile . '.' . $num . '.gz', $cron_logfile . '.' . ($num + 1) . '.gz');
+ while($num >= 1) {
+ if(is_file($cron_logfile . '.' . $num . '.gz')) rename($cron_logfile . '.' . $num . '.gz', $cron_logfile . '.' . ($num + 1) . '.gz');
126
$num--;
127
}
128
0 commit comments