mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
* [FIX] Wrong behavior when there aren't any backups available.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user