Commit 61fa0b00 authored by gerv%gerv.net's avatar gerv%gerv.net

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

parent 8449ddc1
......@@ -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;
......
......@@ -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 = "" %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment