From: Reedy Date: Sun, 9 Dec 2012 02:40:33 +0000 (+0000) Subject: [JobQueue] Make doIsEmpty return bool in all cases. X-Git-Tag: 1.31.0-rc.0~21370^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=78706fcf68cba798de4788a7f1f7a779672a0a50;p=lhc%2Fweb%2Fwiklou.git [JobQueue] Make doIsEmpty return bool in all cases. Change-Id: Ic42f426ef3d13bd0726955fe29b7e7c3d0cae152 --- diff --git a/includes/job/JobQueueDB.php b/includes/job/JobQueueDB.php index e23ff0d905..7f3a73c3ae 100644 --- a/includes/job/JobQueueDB.php +++ b/includes/job/JobQueueDB.php @@ -54,6 +54,7 @@ class JobQueueDB extends JobQueue { ); $wgMemc->add( $key, $found ? 'false' : 'true', self::CACHE_TTL ); + return (bool)$found; } /**