From 40327706f5de56f90244e15b99944d8b010a05f5 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 29 Jul 2008 10:01:58 +0000 Subject: [PATCH] don't count if you don't use it! :) --- maintenance/runJobs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index 14d0809196..cee9cb1e02 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -34,7 +34,7 @@ $conds = ''; if ($type !== false) $conds = "job_cmd = " . $dbw->addQuotes($type); -while ( $dbw->selectField( 'job', 'count(*)', $conds, 'runJobs.php' ) ) { +while ( $dbw->selectField( 'job', 'job_id', $conds, 'runJobs.php' ) ) { $offset=0; for (;;) { $job = ($type == false) ? -- 2.20.1