diff options
author | Ermal <eri@pfsense.org> | 2012-01-27 08:06:53 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-01-27 08:07:16 +0000 |
commit | df225741292cdf7067938de8bc2f018fc14f76a1 (patch) | |
tree | 06a9fcbf02032cbed04c6090ef7cef5fc84a1f7a /config/snort/snort_interfaces_edit.php | |
parent | 938817c9771f62da5c76bcf88daa6d87a0d81b5a (diff) | |
download | pfsense-packages-df225741292cdf7067938de8bc2f018fc14f76a1.tar.gz pfsense-packages-df225741292cdf7067938de8bc2f018fc14f76a1.tar.bz2 pfsense-packages-df225741292cdf7067938de8bc2f018fc14f76a1.zip |
Remove wrongly used if
Diffstat (limited to 'config/snort/snort_interfaces_edit.php')
-rw-r--r-- | config/snort/snort_interfaces_edit.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/config/snort/snort_interfaces_edit.php b/config/snort/snort_interfaces_edit.php index 90f48a4b..0282723b 100644 --- a/config/snort/snort_interfaces_edit.php +++ b/config/snort/snort_interfaces_edit.php @@ -595,13 +595,11 @@ function enable_change(enable_change) { <select name="blockoffendersip" class="formfld" id="blockoffendersip"> <?php foreach (array("src", "dst", "both") as $btype) { - if ($value['snortlisttype'] == 'whitelist') { - if ($btype == $pconfig['blockoffendersip']) - echo "<option value='{$btype}' selected>"; - else - echo "<option value='{$btype}'>"; - echo htmlspecialchars($btype) . '</option>'; - } + if ($btype == $pconfig['blockoffendersip']) + echo "<option value='{$btype}' selected>"; + else + echo "<option value='{$btype}'>"; + echo htmlspecialchars($btype) . '</option>'; } ?> </select> |