Adamw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/61497


Change subject: when response is REFUSED, operations=null
......................................................................

when response is REFUSED, operations=null

Change-Id: I90054bd914ab53b5376b84874a24f031bec3aa22
---
M SmashPig/PaymentProviders/Adyen/ExpatriatedMessages/Authorisation.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/PaymentsListeners 
refs/changes/97/61497/1

diff --git 
a/SmashPig/PaymentProviders/Adyen/ExpatriatedMessages/Authorisation.php 
b/SmashPig/PaymentProviders/Adyen/ExpatriatedMessages/Authorisation.php
index 4af9606..edeac2b 100644
--- a/SmashPig/PaymentProviders/Adyen/ExpatriatedMessages/Authorisation.php
+++ b/SmashPig/PaymentProviders/Adyen/ExpatriatedMessages/Authorisation.php
@@ -28,10 +28,10 @@
 
                $this->paymentMethod = $msgObj->paymentMethod;
 
-               if ( is_array( $msgObj->operations->string ) ) {
-                       $this->operations = $msgObj->operations->string;
+               if ( $msgObj->operations ) {
+                       $this->operations = (array)$msgObj->operations->string;
                } else {
-                       $this->operations = array( $msgObj->operations->string 
);
+                       $this->operations = array();
                }
 
                $this->reason = $msgObj->reason;

-- 
To view, visit https://gerrit.wikimedia.org/r/61497
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I90054bd914ab53b5376b84874a24f031bec3aa22
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/PaymentsListeners
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to