diff --git a/lib/Resque/Job.php b/lib/Resque/Job.php index 9d674f5..c820412 100644 --- a/lib/Resque/Job.php +++ b/lib/Resque/Job.php @@ -63,7 +63,7 @@ class Resque_Job $id = md5(uniqid('', true)); Resque::push($queue, array( 'class' => $class, - 'args' => $args, + 'args' => array($args), 'id' => $id, )); @@ -128,7 +128,7 @@ class Resque_Job return array(); } - return $this->payload['args']; + return array_shift($this->payload['args']); } /** @@ -248,4 +248,4 @@ class Resque_Job return '(' . implode(' | ', $name) . ')'; } } -?> \ No newline at end of file +?>