diff --git a/RELEASE b/RELEASE index 225ef36ab..385e0e602 100644 --- a/RELEASE +++ b/RELEASE @@ -1 +1 @@ -0.9.7 rev 6772 +0.9.7 rev 6773 diff --git a/modules/general/backups/index.php b/modules/general/backups/index.php index b62296f3c..e3f8f25f4 100755 --- a/modules/general/backups/index.php +++ b/modules/general/backups/index.php @@ -58,21 +58,23 @@ function web_AvailableDBBackupsList() { $rows = wf_TableRow($cells, 'row1'); foreach ($availbacks as $eachDump) { - $fileDate = filectime($backupsPath . $eachDump); - $fileDate = date("Y-m-d H:i:s", $fileDate); - $fileSize = filesize($backupsPath . $eachDump); - $fileSize = stg_convert_size($fileSize); - $encodedDumpPath = base64_encode($backupsPath . $eachDump); - $downloadLink = wf_Link('?module=backups&download=' . $encodedDumpPath, $eachDump, false, ''); - $actLinks = wf_JSAlert('?module=backups&deletedump=' . $encodedDumpPath, web_delete_icon(), __('Removing this may lead to irreparable results')) . ' '; - $actLinks.= wf_Link('?module=backups&download=' . $encodedDumpPath, wf_img('skins/icon_download.png', __('Download')), false, ''); - $actLinks.= wf_JSAlert('?module=backups&restore=true&restoredump=' . $encodedDumpPath, wf_img('skins/icon_restoredb.png', __('Restore DB')), __('Are you serious')); - - $cells = wf_TableCell($fileDate); - $cells.= wf_TableCell($fileSize); - $cells.= wf_TableCell($downloadLink); - $cells.= wf_TableCell($actLinks); - $rows.= wf_TableRow($cells, 'row3'); + if (is_file($backupsPath . $eachDump)) { + $fileDate = filectime($backupsPath . $eachDump); + $fileDate = date("Y-m-d H:i:s", $fileDate); + $fileSize = filesize($backupsPath . $eachDump); + $fileSize = stg_convert_size($fileSize); + $encodedDumpPath = base64_encode($backupsPath . $eachDump); + $downloadLink = wf_Link('?module=backups&download=' . $encodedDumpPath, $eachDump, false, ''); + $actLinks = wf_JSAlert('?module=backups&deletedump=' . $encodedDumpPath, web_delete_icon(), __('Removing this may lead to irreparable results')) . ' '; + $actLinks.= wf_Link('?module=backups&download=' . $encodedDumpPath, wf_img('skins/icon_download.png', __('Download')), false, ''); + $actLinks.= wf_JSAlert('?module=backups&restore=true&restoredump=' . $encodedDumpPath, wf_img('skins/icon_restoredb.png', __('Restore DB')), __('Are you serious')); + + $cells = wf_TableCell($fileDate); + $cells.= wf_TableCell($fileSize); + $cells.= wf_TableCell($downloadLink); + $cells.= wf_TableCell($actLinks); + $rows.= wf_TableRow($cells, 'row3'); + } } $result = wf_TableBody($rows, '100%', '0', 'sortable'); }