]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
ids.cgi: Always write used providers rulefiles file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 14 Apr 2021 19:12:36 +0000 (21:12 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 2 Dec 2021 06:54:48 +0000 (07:54 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index e5553480dbcb263400a6094463e14694a6840172..ed847b9167e7f13d3ef5704327aa92f125159bb6 100644 (file)
@@ -463,11 +463,8 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'ids apply'}) {
                                push(@provider_rulefiles, $rulesfile);
                        }
 
-                       # Check if any rulesfiles have been found for this provider.
-                       if (@provider_rulefiles) {
-                               # Call function and write the providers used rulesfile file.
-                               &IDS::write_used_provider_rulefiles_file($provider, @provider_rulefiles);
-                       }
+                       # Call function and write the providers used rulesfile file.
+                       &IDS::write_used_provider_rulefiles_file($provider, @provider_rulefiles);
                }
        }