Merge "Make Job::hasExecutionFlag() actually work"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 29 Mar 2019 22:54:58 +0000 (22:54 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 29 Mar 2019 22:54:58 +0000 (22:54 +0000)
includes/jobqueue/Job.php

index 9306657..24fc473 100644 (file)
@@ -132,7 +132,7 @@ abstract class Job implements IJobSpecification {
         * @since 1.31
         */
        public function hasExecutionFlag( $flag ) {
-               return ( $this->executionFlags && $flag ) === $flag;
+               return ( $this->executionFlags & $flag ) === $flag;
        }
 
        /**