From: John Du Hart Date: Wed, 2 Nov 2011 15:15:10 +0000 (+0000) Subject: Followup r100305, don't try to do a batch query for an empty result (which would... X-Git-Tag: 1.31.0-rc.0~26760 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=cdb26ec5b576f4fa1d6994b2a7f86fd06873efd6;p=lhc%2Fweb%2Fwiklou.git Followup r100305, don't try to do a batch query for an empty result (which would cause bug 32134) --- diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index f6d48ea7be..779b4db722 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -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();