aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-04-13 03:21:44 +0000
committerlpsolit%gmail.com <>2005-04-13 03:21:44 +0000
commitadd70bda3bba58c8e39711215e9d6f31b42bf598 (patch)
treec89fa02b306f1b109cab3f7e5fb437bc220854c0 /userprefs.cgi
parentBug 289618: reference globals.pl's quoteUrls function for changing bug term -... (diff)
downloadbugzilla-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-xuserprefs.cgi4
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)");