Skip to content

Commit b5e0fa7

Browse files
committed
Fix issue where it became impossible to edit incremental backup settings
1 parent 290dfc4 commit b5e0fa7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/edit/server/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@
13061306
);
13071307
check_return_code($return_var, $output);
13081308
unset($output);
1309-
1309+
$v_backup_incremental = "yes";
13101310
$v_repo = $_POST["v_repo"];
13111311
$v_snapshots = $_POST["v_snapshots"];
13121312
$v_keep_daily = $_POST["v_keep_daily"];
@@ -1321,7 +1321,7 @@
13211321
exec(HESTIA_CMD . "v-delete-backup-host-restic ", $output, $return);
13221322
check_return_code($return_var, $output);
13231323
unset($output);
1324-
1324+
$v_backup_incremental = "";
13251325
$v_repo = "";
13261326
$v_snapshots = "";
13271327
$v_keep_daily = "";
@@ -1331,7 +1331,7 @@
13311331
}
13321332
}
13331333
if (empty($_SESSION["error_msg"])) {
1334-
if ($_POST["v_backup_incremental"] !== "yes" && $_SESSION["BACKUP_INCREMENTAL"] === "yes") {
1334+
if ($_POST["v_backup_incremental"] === "yes" && $_SESSION["BACKUP_INCREMENTAL"] === "yes") {
13351335
exec(HESTIA_CMD . "v-delete-backup-host-restic ", $output, $return);
13361336
check_return_code($return_var, $output);
13371337
unset($output);

0 commit comments

Comments
 (0)