Skip to content

Commit 90c89d8

Browse files
authored
Fix for cannot Save Options when Remote Backup enabled
If Remote backup is enabled and configured and you go to Server Options you cannot save because always try to resave config without password.
1 parent e1af40e commit 90c89d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/edit/server/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
// Change remote backup host
304304
if (empty($_SESSION['error_msg'])) {
305305
if ((!empty($_POST['v_backup_host'])) && ($_POST['v_backup_type'] == $v_backup_type) && (!isset($v_backup_new))) {
306-
if (($_POST['v_backup_host'] != $v_backup_host) || ($_POST['v_backup_username'] != $v_backup_username) || ($_POST['v_backup_password'] || $v_backup_password) || ($_POST['v_backup_bpath'] == $v_backup_bpath)){
306+
if (($_POST['v_backup_host'] != $v_backup_host) || ($_POST['v_backup_username'] != $v_backup_username) || ($_POST['v_backup_password'] != $v_backup_password) || ($_POST['v_backup_bpath'] != $v_backup_bpath)){
307307
$v_backup_host = escapeshellarg($_POST['v_backup_host']);
308308
$v_backup_type = escapeshellarg($_POST['v_backup_type']);
309309
$v_backup_username = escapeshellarg($_POST['v_backup_username']);

0 commit comments

Comments
 (0)