From: lpsolit%gmail.com <> Date: Mon, 11 Apr 2005 00:49:48 +0000 (+0000) Subject: Bug 288857: Use of uninitialized value in bitwise and (&) at Bugzilla/User.pm line... X-Git-Tag: bugzilla-2.19.3~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d564d223b5b7ebac62c84f60ebb715dd82f5a152;p=thirdparty%2Fbugzilla.git Bug 288857: Use of uninitialized value in bitwise and (&) at Bugzilla/User.pm line 984 - Patch by Gervase Markham r=LpSolit a=myk --- diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index ec3129b320..8c5ad3d54d 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 {