mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 197171 - report.cgi: Use of uninitialized value in numeric lt. Patch by gerv; r,a=justdave.
This commit is contained in:
parent
731073c19a
commit
f82c184c9d
@ -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 = "" %]
|
||||
|
Loading…
Reference in New Issue
Block a user