From fcaba41a86affd0c558524566a540bb3289898d4 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 17 Oct 2012 14:55:46 -0700 Subject: [PATCH] [JobQueue] Fixed misuse of array type cast. Change-Id: I5d5f4325827cfb5fc5d0b85f57595541340a08d5 --- includes/job/JobQueueGroup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/job/JobQueueGroup.php b/includes/job/JobQueueGroup.php index 2f9415297c..69bcf011be 100644 --- a/includes/job/JobQueueGroup.php +++ b/includes/job/JobQueueGroup.php @@ -83,7 +83,7 @@ class JobQueueGroup { * @return bool */ public function push( $jobs ) { - $jobs = (array)$jobs; + $jobs = is_array( $jobs ) ? $jobs : array( $jobs ); $jobsByType = array(); // (job type => list of jobs) foreach ( $jobs as $job ) { -- 2.20.1