X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FOOUIHTMLForm.php;h=6fbf15b66d56be565846b68e5a5c8f0c10d6f5fe;hb=fa8253824f76e7f939a51720ed443c36ead37b9d;hp=bbd3473af9fb9546b7f4f21a274742bb4267a36c;hpb=1827c891f549e3163d9e87390c6c6e939e8cf36b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/OOUIHTMLForm.php b/includes/htmlform/OOUIHTMLForm.php index bbd3473af9..6fbf15b66d 100644 --- a/includes/htmlform/OOUIHTMLForm.php +++ b/includes/htmlform/OOUIHTMLForm.php @@ -202,8 +202,8 @@ class OOUIHTMLForm extends HTMLForm { } else { $errors = $elements->getErrorsByType( $elementsType ); foreach ( $errors as &$error ) { - // Input: array( 'message' => 'foo', 'errors' => array( 'a', 'b', 'c' ) ) - // Output: array( 'foo', 'a', 'b', 'c' ) + // Input: [ 'message' => 'foo', 'errors' => [ 'a', 'b', 'c' ] ] + // Output: [ 'foo', 'a', 'b', 'c' ] $error = array_merge( [ $error['message'] ], $error['params'] ); } }