mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-28 19:25:14 +00:00
Added a check to see if we have args before we attempt to access the first item in the payload args to prevent an undefined index error.
This commit is contained in:
parent
3955bc8edc
commit
f6334bb3b8
@ -230,8 +230,9 @@ class Resque_Job
|
|||||||
if($status->isTracking()) {
|
if($status->isTracking()) {
|
||||||
$monitor = true;
|
$monitor = true;
|
||||||
}
|
}
|
||||||
|
$args = count($this->payload['args'])? $this->payload['args'][0] : $this->payload['args'];
|
||||||
|
|
||||||
return self::create($this->queue, $this->payload['class'], $this->payload['args'][0], $monitor);
|
return self::create($this->queue, $this->payload['class'], $args, $monitor);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user