Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -512,7 +512,7 @@ |
513 | 513 | foreach( $data as $key => $value ) { |
514 | 514 | if( $value == '' || $data['state'] == 'YY' ) { |
515 | 515 | // ignore fields that are not required |
516 | | - if( $msg[$key] ) { |
| 516 | + if( isset($msg[$key]) ) { |
517 | 517 | $error[$key] = "**" . wfMsg( 'payflowpro_gateway-error-msg', $msg[$key] ) . "**<br />"; |
518 | 518 | $error_result = '1'; |
519 | 519 | } |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.php |
— | — | @@ -38,6 +38,7 @@ |
39 | 39 | $wgPayflowProUserID = ''; //if one or more users are set up, authorized user ID, else same as VENDOR |
40 | 40 | $wgPayflowProPassword = ''; //merchant login password |
41 | 41 | |
| 42 | +global $wgPayflowGatewayDBserver, $wgPayflowGatewayDBname, $wgPayflowGatewayDBuser, $wgPayflowGatewayDBpassword; |
42 | 43 | $wgPayflowGatewayDBserver = ( !$wgPayflowGatewayDBserver ) ? $wgDBserver : $wgPayflowGatewayDBserver; |
43 | 44 | $wgPayflowGatewayDBname = ( !$wgPayflowGatewayDBname ) ? $wgDBname : $wgPayflowGatewayDBname; |
44 | 45 | $wgPayflowGatewayDBuser = ( !$wgPayflowGatewayDBuser ) ? $wgDBuser : $wgPayflowGatewayDBuser; |