summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2016-07-13 02:56:43 +0200
committerDylan Hardison <dylan@mozilla.com>2016-07-13 02:56:57 +0200
commitaf9f0e174a76ecd2a58d7f85ff7fd75ca5aab41f (patch)
treee2e103fd465abf7cdfacecf699cca2af9d0e5005
parent149769378a6ffc3bf4407866d2ccb23296ddbc23 (diff)
downloadbugzilla-af9f0e174a76ecd2a58d7f85ff7fd75ca5aab41f.tar.gz
bugzilla-af9f0e174a76ecd2a58d7f85ff7fd75ca5aab41f.tar.xz
Bug 1284521 - Reference is already weak at Bugzilla/Comment.pm line 245.
-rw-r--r--Bugzilla/Comment.pm4
1 files changed, 2 insertions, 2 deletions
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;
}