Followup r100305, don't try to do a batch query for an empty result (which would cause bug 32134)
This commit is contained in:
parent
79916a2c87
commit
cdb26ec5b5
1 changed files with 5 additions and 0 deletions
|
|
@ -385,6 +385,11 @@ class HistoryPager extends ReverseChronologicalPager {
|
|||
}
|
||||
|
||||
function doBatchLookups() {
|
||||
# No results? Nothing to batch
|
||||
if ( !$this->mResult->numRows() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
# Do a link batch query
|
||||
$this->mResult->seek( 0 );
|
||||
$batch = new LinkBatch();
|
||||
|
|
|
|||
Loading…
Reference in a new issue