]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Show "Update Ruleset"-Button only if automatic updates are disabled
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 7 Feb 2019 06:44:11 +0000 (07:44 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 7 Feb 2019 06:44:11 +0000 (07:44 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ids.cgi

index 60e40d7de59733d6b2d5d81e7a8e80b030501d29..5ed3ed9f2e626193bc633d063a06da2d2f892954 100644 (file)
@@ -902,8 +902,8 @@ print <<END
                        <td align='right'>
 END
 ;
-                       # Check if a ruleset has been downloaded yet.
-                       if (%idsrules) {
+                       # Show the "Update Ruleset"-Button only if a ruleset has been downloaded yet and automatic updates are disabled.
+                       if ((%idsrules) && ($rulessettings{'AUTOUPDATE_INTERVAL'} eq "off")) {
                                # Display button to update the ruleset.
                                print"<input type='submit' name='RULESET' value='$Lang::tr{'update ruleset'}'>\n";
                }