X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=484dfe8d4d624050a1fa78dd503b9ed3d0e67667;hp=e80ecf1c464d3c187035e807d16bbfb955e46078;hb=3df3b575c6617df64ec98533cc7141bd2314e274;hpb=04191cc9512e5ebe31cc8ca268e2ab431f02796b diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index e80ecf1c46..484dfe8d4d 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -195,11 +195,15 @@ function wfArrayDiff2_cmp( $a, $b ) { } else { reset( $a ); reset( $b ); - while ( ( list( , $valueA ) = each( $a ) ) && ( list( , $valueB ) = each( $b ) ) ) { + while ( key( $a ) !== null && key( $b ) !== null ) { + $valueA = current( $a ); + $valueB = current( $b ); $cmp = strcmp( $valueA, $valueB ); if ( $cmp !== 0 ) { return $cmp; } + next( $a ); + next( $b ); } return 0; }