Index: trunk/extensions/DonationInterface/gateway_forms/RapidHtml.php |
— | — | @@ -185,6 +185,9 @@ |
186 | 186 | $escape_errors = array(); |
187 | 187 | foreach ( $this->form_errors as $error ) { |
188 | 188 | $error_c = str_replace( array("\r\n", "\n", "\r"), " ", $error ); |
| 189 | + if( is_array( $error_c ) ){ |
| 190 | + $error_c = implode( " ", $error_c ); |
| 191 | + } |
189 | 192 | $escape_errors[] = addslashes($error_c); |
190 | 193 | } |
191 | 194 | $form = str_replace($escape_error_tokens, $escape_errors, $form); |