Skip to content

Commit fd2f1da

Browse files
author
Kristan Kenney
committed
Fix check in Edit Firewall page
1 parent e338aff commit fd2f1da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/edit/firewall/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
}
8282
$_SESSION['error_msg'] = sprintf(_('Field "%s" can not be blank.'),$error_msg);
8383
}
84-
if (!empty($_SESSION['error_msg'])) {
84+
if (empty($_SESSION['error_msg'])) {
8585
$v_rule = escapeshellarg($_GET['rule']);
8686
$v_action = escapeshellarg($_POST['v_action']);
8787
$v_protocol = escapeshellarg($_POST['v_protocol']);
@@ -93,7 +93,7 @@
9393
$v_comment = escapeshellarg($_POST['v_comment']);
9494

9595
// Change Status
96-
exec (HESTIA_CMD."v-change-firewall-rule ".$v_rule." ".$v_action." ".$v_ip." ".$v_port." ".$v_protocol." ".$v_comment, $output, $return_var);
96+
exec (HESTIA_CMD."v-change-firewall-rule ".$v_rule." ".$v_action." ".$v_ip." ".$v_port." ".$v_protocol." ".$v_comment, $output, $return_var);
9797
check_return_code($return_var,$output);
9898
unset($output);
9999

0 commit comments

Comments
 (0)