* [FIX] Wrong behavior when there aren't any backups available.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-12-17 19:01:12 +01:00
committed by Rubén D
parent 8acca8250e
commit c040a779cb

View File

@@ -314,9 +314,9 @@ final class ConfigManagerController extends ControllerBase
$template->assign('siteName', AppInfoInterface::APP_NAME);
$backupAppFile = new FileHandler(FileBackupService::getAppBackupFilename(BACKUP_PATH, $this->configData->getBackupHash(), true));
$backupDbFile = new FileHandler(FileBackupService::getDbBackupFilename(BACKUP_PATH, $this->configData->getBackupHash(), true));
$exportFile = new FileHandler(XmlExportService::getExportFilename(BACKUP_PATH, $this->configData->getExportHash(), true));
$backupAppFile = new FileHandler(FileBackupService::getAppBackupFilename(BACKUP_PATH, $this->configData->getBackupHash() ?: '', true));
$backupDbFile = new FileHandler(FileBackupService::getDbBackupFilename(BACKUP_PATH, $this->configData->getBackupHash() ?: '', true));
$exportFile = new FileHandler(XmlExportService::getExportFilename(BACKUP_PATH, $this->configData->getExportHash() ?: '', true));
try {
$backupAppFile->checkFileExists();