* Remove unneeded code
[lhc/web/wiklou.git] / includes / JobQueue.php
index 8bfd1b3..afa757d 100644 (file)
@@ -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__ );