Skip to content

Commit a1e592c

Browse files
authored
Fix php error in code (hestiacp#2793)
1 parent 2d43e18 commit a1e592c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

web/edit/server/index.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@
174174
$v_smtp_relay_user = '';
175175
}
176176
$v_smtp_relay_pass = '';
177+
if (empty($_POST['v_experimental_features'])){
178+
$_POST['v_experimental_features'] = 'false';
179+
}
180+
if (empty($_POST['v_policy_user_view_suspended'])){
181+
$_POST['v_policy_user_view_suspended'] = 'false';
182+
}
177183

178184
// List Database hosts
179185
exec(HESTIA_CMD."v-list-database-hosts json", $output, $return_var);
@@ -448,7 +454,7 @@
448454
}
449455

450456
// Update experimental features status
451-
if (empty($_SESSION['error_msg'])) {
457+
if (empty($_SESSION['error_msg']) && $_POST['v_experimental_features'] != $_SESSION['POLICY_SYSTEM_ENABLE_BACON']) {
452458
if ($_POST['v_experimental_features'] == 'on') {
453459
$_POST['v_experimental_features'] = 'true';
454460
} else {

0 commit comments

Comments
 (0)