We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc6b175 + 882e464 commit 4a4eba3Copy full SHA for 4a4eba3
inc/fulltext.php
@@ -651,7 +651,11 @@ function ft_resultUnite($args)
651
$result = $args[0];
652
for ($i = 1; $i !== $array_count; $i++) {
653
foreach (array_keys($args[$i]) as $id) {
654
- $result[$id] += $args[$i][$id];
+ if (isset($result[$id])) {
655
+ $result[$id] += $args[$i][$id];
656
+ } else {
657
+ $result[$id] = $args[$i][$id];
658
+ }
659
}
660
661
return $result;
0 commit comments