From af9f0e174a76ecd2a58d7f85ff7fd75ca5aab41f Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Tue, 12 Jul 2016 20:56:43 -0400 Subject: Bug 1284521 - Reference is already weak at Bugzilla/Comment.pm line 245. --- Bugzilla/Comment.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Comment.pm b/Bugzilla/Comment.pm index ff718c9e1..2fe86253b 100644 --- a/Bugzilla/Comment.pm +++ b/Bugzilla/Comment.pm @@ -34,7 +34,7 @@ use Bugzilla::User; use Bugzilla::Util; use List::Util qw(first); -use Scalar::Util qw(blessed weaken); +use Scalar::Util qw(blessed weaken isweak); ############################### #### Initialization #### @@ -242,7 +242,7 @@ sub bug { my $self = shift; require Bugzilla::Bug; my $bug = $self->{bug} ||= new Bugzilla::Bug($self->bug_id); - weaken($self->{bug}); + weaken($self->{bug}) unless isweak($self->{bug}); return $bug; } -- cgit v1.2.3-24-g4f1b