Skip to content

Commit

Permalink
Merge branch 'release/4.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed May 30, 2022
2 parents 39e7a49 + 6e3d2be commit cd45bce
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
## [Unreleased][unreleased]
-

## [4.1.1] - 2022-05-30
### Fixed
- Fix possible "Warning: Invalid argument supplied for foreach()" with incomplete config.

## [4.1.0] - 2022-04-11
- No longer use global core mode.
- No longer catch exceptions, should be handled downstream.
Expand Down Expand Up @@ -82,8 +86,9 @@ This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a C
## 1.0.0 - 2015-01-19
- First release.

[unreleased]: https://github.com/pronamic/wp-pronamic-pay-multisafepay/compare/4.1.0...HEAD
[4.0.1]: https://github.com/pronamic/wp-pronamic-pay-multisafepay/compare/4.0.1...4.1.0
[unreleased]: https://github.com/pronamic/wp-pronamic-pay-multisafepay/compare/4.1.1...HEAD
[4.1.1]: https://github.com/pronamic/wp-pronamic-pay-multisafepay/compare/4.1.0...4.1.1
[4.1.0]: https://github.com/pronamic/wp-pronamic-pay-multisafepay/compare/4.0.1...4.1.0
[4.0.1]: https://github.com/pronamic/wp-pronamic-pay-multisafepay/compare/4.0.0...4.0.1
[4.0.0]: https://github.com/wp-pay-gateways/multisafepay/compare/3.0.0...4.0.0
[3.0.0]: https://github.com/wp-pay-gateways/multisafepay/compare/2.1.3...3.0.0
Expand Down
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@
}
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"roots/wordpress-core-installer": true,
"bamarni/composer-bin-plugin": true
}
},
"require": {
"php": ">=5.6.20",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "multisafepay",
"version": "4.1.0",
"version": "4.1.1",
"description": "MultiSafepay driver for the WordPress payment processing library.",
"repository": {
"type": "git",
Expand Down
10 changes: 6 additions & 4 deletions src/XML/GatewaysResponseMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ public static function parse( SimpleXMLElement $xml ) {

$message->gateways = array();

foreach ( $xml->gateways->gateway as $gateway ) {
$id = Security::filter( $gateway->id );
$description = Security::filter( $gateway->description );
if ( \is_array( $xml->gateways->gateway ) ) {
foreach ( $xml->gateways->gateway as $gateway ) {
$id = Security::filter( $gateway->id );
$description = Security::filter( $gateway->description );

$message->gateways[ $id ] = $description;
$message->gateways[ $id ] = $description;
}
}

return $message;
Expand Down

0 comments on commit cd45bce

Please sign in to comment.