Index: trunk/extensions/DataTransclusion/MAB2RecordTransformer.php |
— | — | @@ -97,7 +97,11 @@ |
98 | 98 | |
99 | 99 | if ( !empty( $rec[ $item ] ) ) { |
100 | 100 | if ( is_array( $rec[ $item ] ) ) { |
101 | | - $r[ $field ] = array_merge( $r[ $field ], $rec[ $item ] ); |
| 101 | + if ( empty( $r[ $field ] ) ) { |
| 102 | + $r[ $field ] = $rec[ $item ]; |
| 103 | + } else { |
| 104 | + $r[ $field ] = array_merge( $r[ $field ], $rec[ $item ] ); |
| 105 | + } |
102 | 106 | } else { |
103 | 107 | $r[ $field ][] = $rec[ $item ]; |
104 | 108 | } |