Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/RapidHtml.php |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | $this->set_html_file_path( htmlspecialchars( $wgRequest->getText( 'ffname', 'default' ))); |
88 | 88 | |
89 | 89 | // fix general form error messages so it's not an array of msgs |
90 | | - if ( count( $form_errors[ 'general' ] )) { |
| 90 | + if ( is_array( $form_errors[ 'general' ] ) && count( $form_errors[ 'general' ] )) { |
91 | 91 | $general_errors = ""; |
92 | 92 | foreach ( $form_errors[ 'general' ] as $general_error ) { |
93 | 93 | $general_errors .= "<p class='creditcard'>$general_error</p>"; |