Bug 197171 - report.cgi: Use of uninitialized value in numeric lt. Patch by gerv; r,a=justdave.

This commit is contained in:
gerv%gerv.net 2003-04-27 13:43:15 +00:00
parent 731073c19a
commit f82c184c9d
2 changed files with 5 additions and 3 deletions

View File

@ -214,9 +214,7 @@ if ($cgi->param('format') eq "bar") {
$min_width *= (scalar(@row_names) || 1);
}
if ($width < $min_width) {
$width = $min_width;
}
$vars->{'min_width'} = $min_width;
}
$vars->{'width'} = $width if $width;

View File

@ -37,6 +37,10 @@
height = 350
%]
[% IF min_width AND width < min_width %]
[% width = min_width %]
[% END %]
[%# We ignore row_field for pie charts %]
[% IF format == "pie" %]
[% row_field = "" %]