aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Schöning <tschoening@am-soft.de>2016-03-09 23:22:17 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2016-03-09 23:22:17 +0100
commit7621e45539668c56a8f7b83a46a05a9e5aca79b0 (patch)
treef87e43e8ab10c197ddc56fd5a1e1dbdadb6ff186
parentBug 1234977: Replace \d+ by [0-9]+ in critical validation places (diff)
downloadgentoo-bugzilla-7621e45539668c56a8f7b83a46a05a9e5aca79b0.zip
gentoo-bugzilla-7621e45539668c56a8f7b83a46a05a9e5aca79b0.tar.gz
gentoo-bugzilla-7621e45539668c56a8f7b83a46a05a9e5aca79b0.tar.bz2
Bug 1250908: "Use of uninitialized value" warning thrown when creating a new bug depending or blocking another one
r=LpSolit a=dkl
-rw-r--r--Bugzilla/BugMail.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index d4a1597..110a1ff 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -169,8 +169,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} // '');
}
}