dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aebf0ed
)
[JobQueue] Fixed misuse of array type cast.
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 17 Oct 2012 21:55:46 +0000
(14:55 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 17 Oct 2012 21:55:46 +0000
(14:55 -0700)
Change-Id: I5d5f4325827cfb5fc5d0b85f57595541340a08d5
includes/job/JobQueueGroup.php
patch
|
blob
|
history
diff --git
a/includes/job/JobQueueGroup.php
b/includes/job/JobQueueGroup.php
index
2f94152
..
69bcf01
100644
(file)
--- 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 ) {