From 8052dc9ffc4b39bfffa311adfbdcf99573aff40f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 19 May 2014 10:12:14 -0700 Subject: [PATCH] Fixed job miscounting bug when a string digit is returned Change-Id: I857b56a6e78f715157c7f648929d6bf38eb74828 --- includes/jobqueue/JobQueueFederated.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/jobqueue/JobQueueFederated.php b/includes/jobqueue/JobQueueFederated.php index 58d5c67664..d6f9560eda 100644 --- a/includes/jobqueue/JobQueueFederated.php +++ b/includes/jobqueue/JobQueueFederated.php @@ -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; } -- 2.20.1