зеркало из https://github.com/mozilla/gecko-dev.git
Bug 302200: uninitialized value when saving email prefs - Patch by Rob Siklos <robzilla@siklos.ca> r=LpSolit a=myk
This commit is contained in:
Родитель
a60d418e65
Коммит
2b8a8b2f6b
|
@ -253,7 +253,9 @@ sub SaveEmail {
|
|||
|
||||
# Global positive events: a ticked box means "send me mail."
|
||||
foreach my $event (GLOBAL_EVENTS) {
|
||||
if (1 == $cgi->param("email-" . REL_ANY . "-$event")) {
|
||||
if (defined($cgi->param("email-" . REL_ANY . "-$event"))
|
||||
&& $cgi->param("email-" . REL_ANY . "-$event") == 1)
|
||||
{
|
||||
$dbh->do("INSERT INTO email_setting " .
|
||||
"(user_id, relationship, event) " .
|
||||
"VALUES ($userid, " . REL_ANY . ", $event)");
|
||||
|
|
Загрузка…
Ссылка в новой задаче