Skip to content

Commit 23fb4ea

Browse files
author
Grzegorz Rajchman
committed
Ensure id is not empty
1 parent 6f5a372 commit 23fb4ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Resque/Job.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public function fail($exception)
253253
public function recreate()
254254
{
255255
$monitor = false;
256-
if (isset($this->payload['id'])) {
256+
if (!empty($this->payload['id'])) {
257257
$status = new Resque_Job_Status($this->payload['id'], $this->getPrefix());
258258
if($status->isTracking()) {
259259
$monitor = true;

0 commit comments

Comments
 (0)