Merge "jquery.accessKeyLabel: make modifier info public"
[lhc/web/wiklou.git] / includes / api / ApiResult.php
index e28cb82..bd5fe08 100644 (file)
@@ -1090,7 +1090,7 @@ class ApiResult implements ApiSerializable {
                $s = 0;
                if ( is_array( $value ) ) {
                        foreach ( $value as $k => $v ) {
-                               if ( !self::isMetadataKey( $s ) ) {
+                               if ( !self::isMetadataKey( $k ) ) {
                                        $s += self::valueSize( $v );
                                }
                        }