Merge "Fixed job miscounting bug when a string digit is returned"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 19 May 2014 17:27:47 +0000 (17:27 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 19 May 2014 17:27:47 +0000 (17:27 +0000)
includes/jobqueue/JobQueueFederated.php

index 58d5c67..d6f9560 100644 (file)
@@ -195,7 +195,7 @@ class JobQueueFederated extends JobQueue {
                $key = $this->getCacheKey( $type );
 
                $count = $this->cache->get( $key );
-               if ( is_int( $count ) ) {
+               if ( $count !== false ) {
                        return $count;
                }