summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhttpd/cgi-bin/check6
1 files changed, 1 insertions, 5 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index e28da5d..592d9ba 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -795,7 +795,6 @@ else {
&prep_template($File, $template);
&fin_template($File, $template);
-$template->param(file_warnings => $File->{Warnings});
$template->param(tidy_output => $File->{Tidy});
$template->param(file_source => &source($File))
if ($template->param('opt_show_source') or
@@ -807,10 +806,7 @@ if ($File->{Opt}->{Output} eq 'json') {
# No JSON escaping in HTML::Template (and "JS" is not the right thing here)
my $json = JSON->new();
$json->allow_nonref(TRUE);
- for my $msgs ($template->param("file_errors"),
- $template->param("file_warnings"))
- {
- next unless $msgs;
+ if (my $msgs = $template->param("file_errors")) {
for my $msg (@$msgs) {
for my $key (qw(msg expl)) {
$msg->{$key} = $json->encode($msg->{$key}) if $msg->{$key};