Просмотр исходного кода

Fix error message /edit/firewall and /add/firewall

Jaap Marcus 4 лет назад
Родитель
Сommit
dbe1b6bb82
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      web/add/firewall/index.php
  2. 1 0
      web/edit/firewall/index.php

+ 1 - 0
web/add/firewall/index.php

@@ -17,6 +17,7 @@ if ($_SESSION['userContext'] != 'admin') {
 exec(HESTIA_CMD."v-list-firewall-ipset 'json'", $output, $return_var);
 check_return_code($return_var, $output);
 $data = json_decode(implode('', $output), true);
+unset($output);
 
 $ipset_lists=[];
 foreach ($data as $key => $value) {

+ 1 - 0
web/edit/firewall/index.php

@@ -46,6 +46,7 @@ if ($v_suspended == 'yes') {
 exec(HESTIA_CMD."v-list-firewall-ipset 'json'", $output, $return_var);
 check_return_code($return_var, $output);
 $data = json_decode(implode('', $output), true);
+unset($output);
 
 $ipset_lists=[];
 foreach ($data as $key => $value) {