]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 410521: The diffs in bugmails were broken and BugMail.pm was throwing a warning...
authormkanat%bugzilla.org <>
Mon, 28 Jan 2008 01:39:28 +0000 (01:39 +0000)
committermkanat%bugzilla.org <>
Mon, 28 Jan 2008 01:39:28 +0000 (01:39 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

Bugzilla/BugMail.pm

index b8680e10b0c7796da04a64d3af534bb98653387e..1085c8b93574b1d2ea35ca65811e56ef2215b2e7 100644 (file)
@@ -71,7 +71,7 @@ sub multiline_sprintf {
     my ($format, $args, $sizes) = @_;
     my @parts;
     my @my_sizes = @$sizes; # Copy this so we don't modify the input array.
-    while (my $string = shift @$args) {
+    foreach my $string (@$args) {
         my $size = shift @my_sizes;
         my @pieces = split("\n", wrap_hard($string, $size));
         push(@parts, \@pieces);