bug 11453 -- remove spurious $i parameter on getGroupIndex()
This commit is contained in:
parent
f561740802
commit
c40461b255
1 changed files with 2 additions and 2 deletions
|
|
@ -324,13 +324,13 @@ class LoadBalancer {
|
|||
|
||||
# Query groups
|
||||
if ( !is_array( $groups ) ) {
|
||||
$groupIndex = $this->getGroupIndex( $groups, $i );
|
||||
$groupIndex = $this->getGroupIndex( $groups );
|
||||
if ( $groupIndex !== false ) {
|
||||
$i = $groupIndex;
|
||||
}
|
||||
} else {
|
||||
foreach ( $groups as $group ) {
|
||||
$groupIndex = $this->getGroupIndex( $group, $i );
|
||||
$groupIndex = $this->getGroupIndex( $group );
|
||||
if ( $groupIndex !== false ) {
|
||||
$i = $groupIndex;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue