bug 11453 -- remove spurious $i parameter on getGroupIndex()

This commit is contained in:
Brion Vibber 2007-09-26 19:38:05 +00:00
parent f561740802
commit c40461b255

View file

@ -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;