From 8d1a08eff62233ba2a7cd213c3e3b534a7edc529 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sun, 13 Jan 2013 16:15:23 +0000 Subject: [PATCH] Bug 43919 - showJobs.php broken Change-Id: I99afd66a3ad1700f1cdac4edea31edf740ec1656 --- includes/job/JobQueueDB.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/job/JobQueueDB.php b/includes/job/JobQueueDB.php index 49f57f9fe5..30612fa0ce 100644 --- a/includes/job/JobQueueDB.php +++ b/includes/job/JobQueueDB.php @@ -89,7 +89,7 @@ class JobQueueDB extends JobQueue { return $size; } - $dbr = $this->getSlaveDB(); + list( $dbr, ) = $this->getSlaveDB(); $size = (int)$dbr->selectField( 'job', 'COUNT(*)', array( 'job_cmd' => $this->type, 'job_token' => '' ), __METHOD__ @@ -113,7 +113,7 @@ class JobQueueDB extends JobQueue { return $count; } - $dbr = $this->getSlaveDB(); + list( $dbr, ) = $this->getSlaveDB(); $count = (int)$dbr->selectField( 'job', 'COUNT(*)', array( 'job_cmd' => $this->type, "job_token !={$dbr->addQuotes('')}" ), __METHOD__ -- 2.20.1