Just ignore the block and let the block insert/update code
handle the logic of pruning expired conflicting blocks as
well as other expired block to other users (as is done
already).
Bug: T92357
Change-Id: Iafcae829af09ed7e8d134cd6c1b2d5bd57ea0f22
$block = self::newFromRow( $row );
# Don't use expired blocks
- if ( $block->deleteIfExpired() ) {
+ if ( $block->isExpired() ) {
continue;
}
$blocks = array();
foreach ( $rows as $row ) {
$block = self::newFromRow( $row );
- if ( !$block->deleteIfExpired() ) {
+ if ( !$block->isExpired() ) {
$blocks[] = $block;
}
}