From: Domas Mituzas Date: Mon, 4 Aug 2008 05:07:53 +0000 (+0000) Subject: add some useless WHERE condition instead of 'Job::pop' :) X-Git-Tag: 1.31.0-rc.0~46155 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=6cc115e45b02696a94a17421f3951abd836115cc;p=lhc%2Fweb%2Fwiklou.git add some useless WHERE condition instead of 'Job::pop' :) --- diff --git a/includes/JobQueue.php b/includes/JobQueue.php index 54d632cdbc..afa757d752 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' ), __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__ );