Skip to content
Snippets Groups Projects
Commit dc97693e authored by Florian Schaal's avatar Florian Schaal
Browse files

fixed last commit

parent f6d3c92b
No related branches found
No related tags found
No related merge requests found
......@@ -121,8 +121,8 @@ class cronjob_logfiles extends cronjob {
// rename older files (move up by one)
$num = $log_retention;
while($num >= 1 && is_file($cron_logfile . '.' . $num . '.gz')) {
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');
$num--;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment