r102729 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102728‎ | r102729 | r102730 >
Date:00:38, 11 November 2011
Author:pgehres
Status:ok
Tags:
Comment:
Handling error as an array with implode
Modified paths:
  • /trunk/extensions/DonationInterface/gateway_forms/RapidHtml.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/gateway_forms/RapidHtml.php
@@ -185,6 +185,9 @@
186186 $escape_errors = array();
187187 foreach ( $this->form_errors as $error ) {
188188 $error_c = str_replace( array("\r\n", "\n", "\r"), " ", $error );
 189+ if( is_array( $error_c ) ){
 190+ $error_c = implode( " ", $error_c );
 191+ }
189192 $escape_errors[] = addslashes($error_c);
190193 }
191194 $form = str_replace($escape_error_tokens, $escape_errors, $form);

Follow-up revisions

RevisionCommit summaryAuthorDate
r102732MFT r100644, r100785, r101785, r102120, r102318, r102332, r102341, r102342, r...awjrichards01:31, 11 November 2011

Status & tagging log