aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/snort/snort_download_rules.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/snort/snort_download_rules.php b/packages/snort/snort_download_rules.php
index 3558ee8b..322e3f5e 100644
--- a/packages/snort/snort_download_rules.php
+++ b/packages/snort/snort_download_rules.php
@@ -91,7 +91,8 @@ include("head.inc");
<?php
/* define oinkid */
-$oinkid = "";
+if($config['installedpackages']['snort'])
+ $oinkid = $config['installedpackages']['snort']['config'][0]['oinkmastercode'];
if(!$oinkid) {
$static_output = gettext("You must obtain an oinkid from snort.com and set its value in the Snort settings tab.");