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->fulfillRequest($requestParamaters);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  $sp->addPostalAddress($donorId, $row->{formatted_address}, 'paypal');
 | 
					  $sp->addPostalAddress($donorId, $row->{formatted_address}, 'paypal') if defined $row->{formatted_address};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
$sthOld->finish();
 | 
					$sthOld->finish();
 | 
				
			||||||
foreach my $dbh ($dbhNew, $dbhOld) {
 | 
					foreach my $dbh ($dbhNew, $dbhOld) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue