From d564d223b5b7ebac62c84f60ebb715dd82f5a152 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 11 Apr 2005 00:49:48 +0000 Subject: Bug 288857: Use of uninitialized value in bitwise and (&) at Bugzilla/User.pm line 984 - Patch by Gervase Markham r=LpSolit a=myk --- Bugzilla/User.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/User.pm') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index ec3129b32..8c5ad3d54 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -1030,8 +1030,8 @@ sub wants_mail { AND relationship = $relationship AND event IN (" . join(",", @$events) . ") LIMIT 1"); - - return($wants_mail); + + return defined($wants_mail) ? 1 : 0; } sub get_userlist { -- cgit v1.2.3-24-g4f1b