Commit dc97693e authored by Florian Schaal's avatar Florian Schaal

fixed last commit

parent f6d3c92b
......@@ -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--;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment