File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ public static function getPatternSpecificData($patternPartial,$extraData = array
305305 if (isset ($ d ["patternSpecific " ]) && array_key_exists ($ patternPartial ,$ d ["patternSpecific " ])) {
306306
307307 if (!empty ($ d ["patternSpecific " ][$ patternPartial ]["data " ])) {
308- $ d = array_merge ($ d , $ d ["patternSpecific " ][$ patternPartial ]["data " ]);
308+ $ d = array_replace_recursive ($ d , $ d ["patternSpecific " ][$ patternPartial ]["data " ]);
309309 }
310310
311311 if (!empty ($ d ["patternSpecific " ][$ patternPartial ]["listItems " ])) {
@@ -317,7 +317,7 @@ public static function getPatternSpecificData($patternPartial,$extraData = array
317317
318318 while ($ k < $ c ) {
319319 $ section = $ numbers [$ k ];
320- $ d ["listItems " ][$ section ] = array_merge ( $ d ["listItems " ][$ section ], $ d ["patternSpecific " ][$ patternPartial ]["listItems " ][$ section ]);
320+ $ d ["listItems " ][$ section ] = array_replace_recursive ( $ d ["listItems " ][$ section ], $ d ["patternSpecific " ][$ patternPartial ]["listItems " ][$ section ]);
321321 $ k ++;
322322 }
323323
You can’t perform that action at this time.
0 commit comments