Commit 7e97a6c2 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 361875: Use of uninitialized value in numeric eq (==) at Bugzilla/User.pm…

Bug 361875: Use of uninitialized value in numeric eq (==) at Bugzilla/User.pm line 1465 - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=bkor a=justdave
parent ac2af67b
......@@ -1461,16 +1461,16 @@ sub wants_mail {
# No mail if there are no events
return 0 if !scalar(@$events);
# Skip DB query if relationship is explicit
return 1 if $relationship == REL_GLOBAL_WATCHER;
my $dbh = Bugzilla->dbh;
# If a relationship isn't given, default to REL_ANY.
if (!defined($relationship)) {
$relationship = REL_ANY;
}
# Skip DB query if relationship is explicit
return 1 if $relationship == REL_GLOBAL_WATCHER;
my $dbh = Bugzilla->dbh;
my $wants_mail =
$dbh->selectrow_array('SELECT 1
FROM email_setting
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment