summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-11-28 03:21:46 +0100
committerlpsolit%gmail.com <>2006-11-28 03:21:46 +0100
commit7e97a6c2f0b9ed01dbda9d47194acaf043fbed75 (patch)
treeb89b2912d99cf6695062fd25a18abf57765a5214 /Bugzilla
parentac2af67b1798b3e7b30f4e8857dee35b8d04cd4b (diff)
downloadbugzilla-7e97a6c2f0b9ed01dbda9d47194acaf043fbed75.tar.gz
bugzilla-7e97a6c2f0b9ed01dbda9d47194acaf043fbed75.tar.xz
Bug 361875: Use of uninitialized value in numeric eq (==) at Bugzilla/User.pm line 1465 - Patch by Frédéric Buclin <LpSolit@gmail.com> r=bkor a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/User.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 3c18f1908..05b96dd29 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -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