Followup r100305, don't try to do a batch query for an empty result (which would cause bug 32134)

This commit is contained in:
John Du Hart 2011-11-02 15:15:10 +00:00
parent 79916a2c87
commit cdb26ec5b5

View file

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