diff --git a/setup/db_backup.php b/setup/db_backup.php index 8afb2bbd07..942876241d 100644 --- a/setup/db_backup.php +++ b/setup/db_backup.php @@ -224,18 +224,18 @@ while($handle && ($file = readdir($handle))) { if ($file != '.' && $file != '..') { - $files[filectime($db_backup->backup_dir.'/'.$file)] = $file; + $files[$file] = filectime($db_backup->backup_dir.'/'.$file); } } if ($handle) closedir($handle); -krsort($files); -foreach($files as $ctime => $file) +arsort($files); +foreach($files as $file => $ctime) { $size = filesize($db_backup->backup_dir.'/'.$file); $setup_tpl->set_var(array( 'filename' => $file, - 'date' => date('Y-m-d H:i',$ctime), + 'mod' => date('Y-m-d H:i',$ctime), 'size' => sprintf('%3.1lf MB (%d)',$size/(1024*1024),$size), 'actions' => ' '."\n". '