aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/snort/snort_rulesets.php11
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>";