minor bug fixes and warning avoidance

This commit is contained in:
dataking 2017-03-28 00:36:17 -07:00
parent 03dee3f757
commit 20cb84c1c0

View File

@ -1241,7 +1241,12 @@ END
</table>
</div>
END
if ((ref($lynis_report_data{'suggestion[]'}) eq 'ARRAY') and
(${$lynis_report_data{'suggestion[]'}}[0] =~ /\|/)) {
print OUT "\t\t\t<h4>suggestions (".scalar(@{$lynis_report_data{'suggestion[]'}})."):</h4>\n";
} else {
print OUT "\t\t\t<h4>suggestions (0):</h4>\n";
}
print OUT <<END;
<div class="content_subsection">
<table>