Add FIXME to wfMergeErrorArrays(), throws E_NOTICEs.
authorHappy-melon <happy-melon@users.mediawiki.org>
Sat, 13 Mar 2010 15:35:09 +0000 (15:35 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sat, 13 Mar 2010 15:35:09 +0000 (15:35 +0000)
includes/GlobalFunctions.php

index 4f16044..69cae20 100644 (file)
@@ -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;
                }