From 0cfb2d20190a501ec84c7308678d627a2bc16558 Mon Sep 17 00:00:00 2001 From: warezthebeef Date: Fri, 19 Aug 2011 12:33:05 +1200 Subject: [PATCH] Fixed job arguments being wiped by array_shift --- lib/Resque/Job.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resque/Job.php b/lib/Resque/Job.php index c820412..ee4aaba 100644 --- a/lib/Resque/Job.php +++ b/lib/Resque/Job.php @@ -128,7 +128,7 @@ class Resque_Job return array(); } - return array_shift($this->payload['args']); + return $this->payload['args'][0]; } /**