From: Reedy Date: Sun, 13 Jan 2013 16:15:23 +0000 (+0000) Subject: Bug 43919 - showJobs.php broken X-Git-Tag: 1.31.0-rc.0~21051^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=8d1a08eff62233ba2a7cd213c3e3b534a7edc529;p=lhc%2Fweb%2Fwiklou.git Bug 43919 - showJobs.php broken Change-Id: I99afd66a3ad1700f1cdac4edea31edf740ec1656 --- 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__