Fixed job miscounting bug when a string digit is returned
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 19 May 2014 17:12:14 +0000 (10:12 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 19 May 2014 17:12:14 +0000 (10:12 -0700)
Change-Id: I857b56a6e78f715157c7f648929d6bf38eb74828

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;
                }