diff options
author | lpsolit%gmail.com <> | 2005-04-13 03:21:44 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-04-13 03:21:44 +0000 |
commit | add70bda3bba58c8e39711215e9d6f31b42bf598 (patch) | |
tree | c89fa02b306f1b109cab3f7e5fb437bc220854c0 /userprefs.cgi | |
parent | Bug 289618: reference globals.pl's quoteUrls function for changing bug term -... (diff) | |
download | bugzilla-add70bda3bba58c8e39711215e9d6f31b42bf598.tar.gz bugzilla-add70bda3bba58c8e39711215e9d6f31b42bf598.tar.bz2 bugzilla-add70bda3bba58c8e39711215e9d6f31b42bf598.zip |
Bug 289729: fix several "uninitialized value" messages - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-x | userprefs.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/userprefs.cgi b/userprefs.cgi index 92e110f3b..9c2135eb3 100755 --- a/userprefs.cgi +++ b/userprefs.cgi @@ -232,7 +232,9 @@ sub SaveEmail { foreach my $rel (RELATIONSHIPS) { # Positive events: a ticked box means "send me mail." foreach my $event (POS_EVENTS) { - if (1 == $cgi->param("email-$rel-$event")) { + if (defined($cgi->param("email-$rel-$event")) + && $cgi->param("email-$rel-$event") == 1) + { $dbh->do("INSERT INTO email_setting " . "(user_id, relationship, event) " . "VALUES ($userid, $rel, $event)"); |