Change arguments for jobs to an array instead of an object. Also change other json encoded items to decode to an array rather than objects

This commit is contained in:
Chris Boulton 2010-04-19 10:35:50 +10:00
parent 7ef1ebbd97
commit c5396f4e86
10 changed files with 81 additions and 78 deletions

View file

@ -543,10 +543,10 @@ class Resque_Worker
{
$job = Resque::redis()->get('worker:' . $this);
if(!$job) {
return new stdClass;
return array();
}
else {
return json_decode($job);
return json_decode($job, true);
}
}