]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 197171 - report.cgi: Use of uninitialized value in numeric lt. Patch by gerv...
authorgerv%gerv.net <>
Sun, 27 Apr 2003 20:43:12 +0000 (20:43 +0000)
committergerv%gerv.net <>
Sun, 27 Apr 2003 20:43:12 +0000 (20:43 +0000)
report.cgi
template/en/default/reports/report.html.tmpl

index 2a081606b0a53c8041619bce05c21125a371edd4..c311cc797961487fe6257bdfa178affa46fe35b5 100755 (executable)
@@ -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;
index 00d58954153e6ccc596cfc0cc530aaef66db1f07..321ad6ae8d47533a4c680ef0256dbe4eb42c7192 100644 (file)
            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 = "" %]