aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-01-27 08:06:53 +0000
committerErmal <eri@pfsense.org>2012-01-27 08:07:16 +0000
commitdf225741292cdf7067938de8bc2f018fc14f76a1 (patch)
tree06a9fcbf02032cbed04c6090ef7cef5fc84a1f7a /config
parent938817c9771f62da5c76bcf88daa6d87a0d81b5a (diff)
downloadpfsense-packages-df225741292cdf7067938de8bc2f018fc14f76a1.tar.gz
pfsense-packages-df225741292cdf7067938de8bc2f018fc14f76a1.tar.bz2
pfsense-packages-df225741292cdf7067938de8bc2f018fc14f76a1.zip
Remove wrongly used if
Diffstat (limited to 'config')
-rw-r--r--config/snort/snort_interfaces_edit.php12
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>