http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99803

Revision: 99803
Author:   jpostlethwaite
Date:     2011-10-14 20:50:18 +0000 (Fri, 14 Oct 2011)
Log Message:
-----------
Put in a check to make sure the key (STATUSID) in the $response array exists to 
prevent PHP notices on the site.

Modified Paths:
--------------
    
branches/fundraising/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php

Modified: 
branches/fundraising/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php
===================================================================
--- 
branches/fundraising/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php
   2011-10-14 20:42:43 UTC (rev 99802)
+++ 
branches/fundraising/extensions/DonationInterface/globalcollect_gateway/globalcollect.adapter.php
   2011-10-14 20:50:18 UTC (rev 99803)
@@ -293,7 +293,8 @@
 
        function processResponse( $response ) {
                //set the transaction result message
-               $this->setTransactionResult( "Response Status: " . 
$response['STATUSID'], 'txn_message' ); //TODO: Translate for GC. 
+               $responseStatus = isset( $response['STATUSID'] ) ? 
$response['STATUSID'] : '';
+               $this->setTransactionResult( "Response Status: " . 
$responseStatus, 'txn_message' ); //TODO: Translate for GC. 
                $this->setTransactionResult( $this->getData( 'order_id' ), 
'gateway_txn_id' );
        }
 


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

Reply via email to