Skip to content

Commit a944bbf

Browse files
committed
Fix typo
1 parent f82568a commit a944bbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ConnectionManager/Extra/Multiple/ConnectionManagerSelective.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public function addConnectionManagerFor($connectionManager, $targetHost=self::MA
4040
$id = key($this->targets);
4141

4242
// sort array by priority
43-
$targets &= $this->targets;
43+
$targets =& $this->targets;
4444
uksort($this->targets, function ($a, $b) use ($targets) {
4545
$pa = $targets[$a]['priority'];
4646
$pb = $targets[$b]['priority'];
47-
return ($pa < $pb ? -1 : ($pa > $pb ? 1 : ($b - $a)));
47+
return ($pa < $pb ? -1 : ($pa > $pb ? 1 : ($a - $b)));
4848
});
4949

5050
return $id;

0 commit comments

Comments
 (0)