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

Revision: 95922
Author:   awjrichards
Date:     2011-08-31 23:24:21 +0000 (Wed, 31 Aug 2011)
Log Message:
-----------
Fixed bug in general error handling in RapidHtml system that was trying to run 
a foreach() on a string rather than an array.

Modified Paths:
--------------
    trunk/extensions/DonationInterface/payflowpro_gateway/forms/RapidHtml.php

Modified: 
trunk/extensions/DonationInterface/payflowpro_gateway/forms/RapidHtml.php
===================================================================
--- trunk/extensions/DonationInterface/payflowpro_gateway/forms/RapidHtml.php   
2011-08-31 23:15:16 UTC (rev 95921)
+++ trunk/extensions/DonationInterface/payflowpro_gateway/forms/RapidHtml.php   
2011-08-31 23:24:21 UTC (rev 95922)
@@ -86,7 +86,7 @@
                $this->set_html_file_path( htmlspecialchars( 
$wgRequest->getText( 'ffname', 'default' )));
                
                // fix general form error messages so it's not an array of msgs
-               if ( count( $form_errors[ 'general' ] )) {
+               if ( is_array( $form_errors[ 'general' ] ) && count( 
$form_errors[ 'general' ] )) {
                        $general_errors = "";
                        foreach ( $form_errors[ 'general' ] as $general_error ) 
{
                                $general_errors .= "<p 
class='creditcard'>$general_error</p>";


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

Reply via email to