From: Frédéric Buclin Date: Sat, 13 Jul 2013 11:28:08 +0000 (+0200) Subject: Fix bustage due to bug 885646: the Defined-Or operator // doesn't exist in Perl 5.8.x X-Git-Tag: bugzilla-4.4.1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97a896494b0607e3fca5b4b3941042371ac4356f;p=thirdparty%2Fbugzilla.git Fix bustage due to bug 885646: the Defined-Or operator // doesn't exist in Perl 5.8.x --- diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index b1b9b39a4c..442d19fcd8 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -444,8 +444,8 @@ sub _get_diffs { && $diff->{field_name} eq $changes[-1]->{field_name} && $diff->{bug_when} eq $changes[-1]->{bug_when} && $diff->{who} eq $changes[-1]->{who} - && ($diff->{attach_id} // 0) == ($changes[-1]->{attach_id} // 0) - && ($diff->{comment_id} // 0) == ($changes[-1]->{comment_id} // 0) + && ($diff->{attach_id} || 0) == ($changes[-1]->{attach_id} || 0) + && ($diff->{comment_id} || 0) == ($changes[-1]->{comment_id} || 0) ) { my $old_change = pop @changes; $diff->{old} = join_activity_entries($diff->{field_name}, $old_change->{old}, $diff->{old});