Merge "Make Job::hasExecutionFlag() actually work"
[lhc/web/wiklou.git] / 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;
        }
 
        /**