X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueue.php;h=0ca272cfdddd3608787efcd21831f86320e5422c;hb=5196ac32c60bf370463135c14eed3bba0d361940;hp=3689ba4943c90272ebc80e5c4a46b0baa48f19e7;hpb=0770f85a0a293e6c7af6f1d3d3a1dbd2d13c1e09;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobQueue.php b/includes/jobqueue/JobQueue.php index 3689ba4943..0ca272cfdd 100644 --- a/includes/jobqueue/JobQueue.php +++ b/includes/jobqueue/JobQueue.php @@ -323,7 +323,7 @@ abstract class JobQueue { final public function batchPush( array $jobs, $flags = 0 ) { $this->assertNotReadOnly(); - if ( !count( $jobs ) ) { + if ( $jobs === [] ) { return; // nothing to do } @@ -366,7 +366,7 @@ abstract class JobQueue { global $wgJobClasses; $this->assertNotReadOnly(); - if ( !WikiMap::isCurrentWikiDomain( $this->domain ) ) { + if ( !WikiMap::isCurrentWikiDbDomain( $this->domain ) ) { throw new MWException( "Cannot pop '{$this->type}' job off foreign '{$this->domain}' wiki queue." ); } elseif ( !isset( $wgJobClasses[$this->type] ) ) {