diff options
author | jim-p <jimp@pfsense.org> | 2010-10-05 10:13:25 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-10-05 10:13:25 -0400 |
commit | daa83f6912bee3857ab91a5158ba6ccec6f93362 (patch) | |
tree | c61d9d28b65cfeae8d17aca54d891d52a8a45832 /config/snort/snort_interfaces_edit.php | |
parent | 2456629c6f172395dc7a0d32d4a622c6167da9ee (diff) | |
download | pfsense-packages-daa83f6912bee3857ab91a5158ba6ccec6f93362.tar.gz pfsense-packages-daa83f6912bee3857ab91a5158ba6ccec6f93362.tar.bz2 pfsense-packages-daa83f6912bee3857ab91a5158ba6ccec6f93362.zip |
Test if variables are set before using them in certain cases, might avoid a condition where interfaces are being duplicated. (Several forum threads about it)
Diffstat (limited to 'config/snort/snort_interfaces_edit.php')
-rw-r--r-- | config/snort/snort_interfaces_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/snort/snort_interfaces_edit.php b/config/snort/snort_interfaces_edit.php index e7df2243..6b3b3a55 100644 --- a/config/snort/snort_interfaces_edit.php +++ b/config/snort/snort_interfaces_edit.php @@ -484,7 +484,7 @@ echo " foreach($if_array as $iface2) { $if2 = convert_friendly_interface_to_real_interface_name2($iface2); - if($config['interfaces'][$iface2]['ipaddr'] == "pppoe") { + if(isset($config['interfaces'][$iface2]['ipaddr']) && ($config['interfaces'][$iface2]['ipaddr'] == "pppoe")) { $if2 = "ng0"; } |