Allow gender based localisation for 'lastmodifiedatby'
[lhc/web/wiklou.git] / includes / LinksUpdate.php
index f566260..d1ac429 100644 (file)
@@ -198,6 +198,10 @@ class LinksUpdate {
 
                $cache = $this->mTitle->getBacklinkCache();
                $batches = $cache->partition( 'templatelinks', $wgUpdateRowsPerJob );
+               if ( !$batches ) {
+                       wfProfileOut( __METHOD__ );
+                       return;
+               }
                $jobs = array();
                foreach ( $batches as $batch ) {
                        list( $start, $end ) = $batch;