Skip to content

Commit b28021c

Browse files
authored
Fix bug with remote backup selection (hestiacp#3335)
* Fix bug with remote backup selection * Fix: Unable to update Blackblaze settings
1 parent a3837f2 commit b28021c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

web/edit/server/index.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,11 +1043,7 @@
10431043

10441044
// Change remote backup host
10451045
if (empty($_SESSION["error_msg"])) {
1046-
if (
1047-
!empty($_POST["v_backup_host"]) &&
1048-
$_POST["v_backup_type"] == $v_backup_type &&
1049-
!isset($v_backup_new)
1050-
) {
1046+
if ($_POST["v_backup_type"] == $v_backup_type && !isset($v_backup_new)) {
10511047
if (in_array($_POST["v_backup_type"], ["ftp", "sftp"])) {
10521048
if (
10531049
$_POST["v_backup_host"] != $v_backup_host ||

web/templates/pages/edit_server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ class="form-select"
788788
</option>
789789
</select>
790790
</div>
791-
<div x-cloak x-show="backupType == "ftp' || backupType == "sftp'">
791+
<div x-cloak x-show="backupType == 'ftp' || backupType == 'sftp' || backupType == ''">
792792
<div class="u-mb10">
793793
<label for="v_backup_host" class="form-label">
794794
<?= _("Host") ?>

0 commit comments

Comments
 (0)