aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
Diffstat (limited to 'config/snort')
-rw-r--r--config/snort/snort_barnyard.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/config/snort/snort_barnyard.php b/config/snort/snort_barnyard.php
index c82e7316..b647c007 100644
--- a/config/snort/snort_barnyard.php
+++ b/config/snort/snort_barnyard.php
@@ -93,10 +93,9 @@ if ($_POST) {
/* if no errors write to conf */
if (!$input_errors) {
- if (isset($id) && $a_nat[$id])
- $natent = $a_nat[$id];
- else
- $natent = array();
+ $natent = array();
+ /* repost the options already in conf */
+ $natent = $pconfig;
$natent['barnyard_enable'] = $_POST['barnyard_enable'] ? 'on' : 'off';
$natent['barnyard_mysql'] = $_POST['barnyard_mysql'] ? $_POST['barnyard_mysql'] : $pconfig['barnyard_mysql'];