Merge branch 'master' from upstream.

This commit is contained in:
Bradley M. Kuhn 2016-05-26 20:40:53 -07:00
commit 6fd18b6643

View file

@ -39,7 +39,7 @@ my $sp = new Supporters($dbh, [ "none" ]);
$sp->addEmailAddress($supporterId, $email, $emailType); $sp->addEmailAddress($supporterId, $email, $emailType);
print "Preferred email address was: ", $sp->getPreferredEmailAddress($supporterId), "\n"; print "Preferred email address was: ", $sp->getPreferredEmailAddress($supporterId) || "(none)", "\n";
if ($preferred) { if ($preferred) {
$sp->setPreferredEmailAddress($supporterId, $email); $sp->setPreferredEmailAddress($supporterId, $email);
print "Preferred email address is now: ", $sp->getPreferredEmailAddress($supporterId), "\n"; print "Preferred email address is now: ", $sp->getPreferredEmailAddress($supporterId), "\n";