ids.cgi: Show "Update Ruleset"-Button only if automatic updates are disabled

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2019-02-07 07:44:11 +01:00
parent f6eb1a40a0
commit 5f2145eb59

View 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";
}