зеркало из https://github.com/mozilla/pjs.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:
Родитель
55812617d9
Коммит
e6cf71b9a3
|
@ -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)");
|
||||
|
|
Загрузка…
Ссылка в новой задаче