Only add address if it exists.
This commit is contained in:
parent
c6b52c42dd
commit
16101492c0
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ while (my $row = $sthOld->fetchrow_hashref) {
|
|||
$sp->fulfillRequest($requestParamaters);
|
||||
}
|
||||
}
|
||||
$sp->addPostalAddress($donorId, $row->{formatted_address}, 'paypal');
|
||||
$sp->addPostalAddress($donorId, $row->{formatted_address}, 'paypal') if defined $row->{formatted_address};
|
||||
}
|
||||
$sthOld->finish();
|
||||
foreach my $dbh ($dbhNew, $dbhOld) {
|
||||
|
|
Loading…
Reference in a new issue