From: Happy-melon Date: Sat, 13 Mar 2010 15:35:09 +0000 (+0000) Subject: Add FIXME to wfMergeErrorArrays(), throws E_NOTICEs. X-Git-Tag: 1.31.0-rc.0~37471 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=3d24e02934ef43f7928fe9195702c1bfdda66478;p=lhc%2Fweb%2Fwiklou.git Add FIXME to wfMergeErrorArrays(), throws E_NOTICEs. --- 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; }