From 27c2eff3456db3a877d66a8642f8cf2098989e0b Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 2 Aug 2011 20:51:00 +0000 Subject: More corrections --- config/snort/snort.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 40459984..10e2f1f2 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -73,6 +73,8 @@ $pfsense_theme_is = $config['theme']; function find_whitelist_key($find_wlist_number) { global $config, $g; + if (!is_array($config['installedpackages']['snortglobal']['whitelist'])) + $config['installedpackages']['snortglobal']['whitelist'] = array(); if (!is_array($config['installedpackages']['snortglobal']['whitelist']['item'])) return 0; /* XXX */ @@ -86,6 +88,8 @@ function find_whitelist_key($find_wlist_number) { function find_suppress_key($find_slist_number) { global $config, $g; + if (!is_array($config['installedpackages']['snortglobal']['suppress'])) + $config['installedpackages']['snortglobal']['suppress'] = array(); if (!is_array($config['installedpackages']['snortglobal']['suppress']['item'])) return 0; /* XXX */ -- cgit v1.2.3