diff options
author | Ermal <eri@pfsense.org> | 2011-08-02 20:51:00 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-08-02 20:51:00 +0000 |
commit | 27c2eff3456db3a877d66a8642f8cf2098989e0b (patch) | |
tree | 962189570ecca8dacec400389283858416b14d94 | |
parent | 06a398a0794be677ec7d74996f7aa32db80348b8 (diff) | |
download | pfsense-packages-27c2eff3456db3a877d66a8642f8cf2098989e0b.tar.gz pfsense-packages-27c2eff3456db3a877d66a8642f8cf2098989e0b.tar.bz2 pfsense-packages-27c2eff3456db3a877d66a8642f8cf2098989e0b.zip |
More corrections
-rw-r--r-- | config/snort/snort.inc | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |