IPS: Do not try to show rules when stat on rules tarball fails

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2021-11-19 17:44:57 +00:00
committed by Arne Fitzenreiter
parent c5c1f30447
commit 9268cddfd2

View File

@@ -1091,6 +1091,7 @@ if (%idsrules) {
# Call stat on the rulestarball.
my $stat = stat("$IDS::rulestarball");
if (defined $stat) {
# Get timestamp the file creation.
my $mtime = $stat->mtime;
@@ -1189,7 +1190,7 @@ if (%idsrules) {
# Close display table
print "</table>";
print <<END
print <<END
<table width='100%'>
<tr>
<td width='100%' align='right'><input type='submit' name='RULESET' value='$Lang::tr{'ids apply'}'></td>
@@ -1199,6 +1200,7 @@ print <<END
END
;
&Header::closebox();
}
}
&Header::closebigbox();