From 3d24e02934ef43f7928fe9195702c1bfdda66478 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Sat, 13 Mar 2010 15:35:09 +0000 Subject: [PATCH] Add FIXME to wfMergeErrorArrays(), throws E_NOTICEs. --- includes/GlobalFunctions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 4f16044fd6..69cae2053a 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2580,11 +2580,13 @@ function wfArrayMerge( $array1/* ... */ ) { * array( 'y' ) * ) */ -function wfMergeErrorArrays(/*...*/) { +function wfMergeErrorArrays( /*...*/ ) { $args = func_get_args(); $out = array(); foreach ( $args as $errors ) { foreach ( $errors as $params ) { + # FIXME: sometimes get nested arrays for $params, + # which leads to E_NOTICEs $spec = implode( "\t", $params ); $out[$spec] = $params; } -- 2.20.1