Merge "When aborting EnhancedRC block line, block should reflect that"
[lhc/web/wiklou.git] / includes / changes / EnhancedChangesList.php
index 3f106bd..d912e3a 100644 (file)
@@ -280,6 +280,9 @@ class EnhancedChangesList extends ChangesList {
                                unset( $block[$i] );
                        }
                }
+               // Further down are some assumptions that $block is a 0-indexed array
+               // with (count-1) as last key. Let's make sure it is.
+               $block = array_values( $block );
 
                $r .= $this->getLogText( $block, $queryParams, $allLogs, $isnew, $namehidden );