From 7e97a6c2f0b9ed01dbda9d47194acaf043fbed75 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 28 Nov 2006 02:21:46 +0000 Subject: Bug 361875: Use of uninitialized value in numeric eq (==) at Bugzilla/User.pm line 1465 - Patch by Frédéric Buclin r=bkor a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/User.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Bugzilla/User.pm') 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 -- cgit v1.2.3-24-g4f1b