summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Schöning <tschoening@am-soft.de>2016-03-09 23:20:56 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2016-03-09 23:20:56 +0100
commit777c785af2f2e8ee911298d98649626ee346aa39 (patch)
treecdc5b0d3ee07a61493b6bea7ea3d2cbd76a65245
parente1f6b9449eba5d15b3e5f24b35896b18c9b644d3 (diff)
downloadbugzilla-777c785af2f2e8ee911298d98649626ee346aa39.tar.gz
bugzilla-777c785af2f2e8ee911298d98649626ee346aa39.tar.xz
Bug 1250908: "Use of uninitialized value" warning thrown when creating a new bug depending or blocking another one
r=LpSolit
-rw-r--r--Bugzilla/BugMail.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index 5ab021869..10716036e 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -168,8 +168,8 @@ sub Send {
}
if ($change->{field_name} eq 'dependson' || $change->{field_name} eq 'blocked') {
- push @referenced_bug_ids, split(/[\s,]+/, $change->{old});
- push @referenced_bug_ids, split(/[\s,]+/, $change->{new});
+ push @referenced_bug_ids, split(/[\s,]+/, $change->{old} // '');
+ push @referenced_bug_ids, split(/[\s,]+/, $change->{new} // '');
}
}