summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-04-13 05:21:44 +0200
committerlpsolit%gmail.com <>2005-04-13 05:21:44 +0200
commitadd70bda3bba58c8e39711215e9d6f31b42bf598 (patch)
treec89fa02b306f1b109cab3f7e5fb437bc220854c0 /userprefs.cgi
parent703a821f34f126ad281ef60e4ff3ec1b237a7798 (diff)
downloadbugzilla-add70bda3bba58c8e39711215e9d6f31b42bf598.tar.gz
bugzilla-add70bda3bba58c8e39711215e9d6f31b42bf598.tar.xz
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)");