IndexPager: Limit offset params to the max of the indices available
Change-Id: I13ec4b1cb0b83e6a2352319cce476f1a9dee96d7
This commit is contained in:
parent
6a5a1145b3
commit
d109281079
1 changed files with 2 additions and 1 deletions
|
|
@ -462,7 +462,8 @@ abstract class IndexPager extends ContextSource implements Pager {
|
|||
$operator = $this->mIncludeOffset ? '<=' : '<';
|
||||
}
|
||||
if ( $offset != '' ) {
|
||||
$offsets = explode( '|', $offset );
|
||||
$offsets = explode( '|', $offset, /* Limit to max of indices */ count( $indexColumns ) );
|
||||
|
||||
$conds[] = $this->buildOffsetConds(
|
||||
$offsets,
|
||||
$indexColumns,
|
||||
|
|
|
|||
Loading…
Reference in a new issue