diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-26 17:13:29 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-26 17:13:29 +0000 |
commit | 22ac38ea3ff7861af354f25ffe433c9e188e6f8d (patch) | |
tree | 077c5db3d0894197ea2e3026a84f3f3957ecd9bc /packages/snort/snort_rulesets.php | |
parent | 6ab78495d8fab7bba91664789117b594fd56cb86 (diff) | |
download | pfsense-packages-22ac38ea3ff7861af354f25ffe433c9e188e6f8d.tar.gz pfsense-packages-22ac38ea3ff7861af354f25ffe433c9e188e6f8d.tar.bz2 pfsense-packages-22ac38ea3ff7861af354f25ffe433c9e188e6f8d.zip |
Do not run in_array() on non arrays
Diffstat (limited to 'packages/snort/snort_rulesets.php')
-rw-r--r-- | packages/snort/snort_rulesets.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/snort/snort_rulesets.php b/packages/snort/snort_rulesets.php index c6b84b66..46bc083f 100644 --- a/packages/snort/snort_rulesets.php +++ b/packages/snort/snort_rulesets.php @@ -99,11 +99,14 @@ include("head.inc"); continue; echo "<tr>"; echo "<td align=\"center\" valign=\"top\">"; - if(in_array($file, $enabled_rulesets_array)) { - $CHECKED = " checked=\"checked\""; - } else { + if(is_array($enabled_rulesets_array)) + if(in_array($file, $enabled_rulesets_array)) { + $CHECKED = " checked=\"checked\""; + } else { + $CHECKED = ""; + } + else $CHECKED = ""; - } echo " <input type='checkbox' name='toenable[]' value='$file' {$CHECKED} />"; echo "</td>"; echo "<td>"; |