From b9b85843572bf283f48285001e276ba7e61b63f6 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Feb 2009 13:37:51 +0100 Subject: updated to MediaWiki 1.14.0 --- includes/JobQueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/JobQueue.php') diff --git a/includes/JobQueue.php b/includes/JobQueue.php index 8bfd1b3e..afa757d7 100644 --- a/includes/JobQueue.php +++ b/includes/JobQueue.php @@ -127,7 +127,7 @@ abstract class Job { // Failed, someone else beat us to it // Try getting a random row $row = $dbw->selectRow( 'job', array( 'MIN(job_id) as minjob', - 'MAX(job_id) as maxjob' ), "job_id >= $offset", __METHOD__ ); + 'MAX(job_id) as maxjob' ), '1=1', __METHOD__ ); if ( $row === false || is_null( $row->minjob ) || is_null( $row->maxjob ) ) { // No jobs to get wfProfileOut( __METHOD__ ); -- cgit v1.2.3-54-g00ecf