Skip to content

Commit 8ccc316

Browse files
author
jingyu liu
committed
repair PHP Notice, on line 17
when run <php queue.php PHP_Job>, it has a PHP Notice. I think it's right command <php queue.php default PHP_Job>.
1 parent 02809d6 commit 8ccc316

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

demo/queue.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
'test' => 'test',
1414
),
1515
);
16+
if (empty($argv[2])) {
17+
$jobId = Resque::enqueue('default', $argv[1], $args, true);
18+
} else {
19+
$jobId = Resque::enqueue($argv[1], $argv[2], $args, true);
20+
}
1621

17-
$jobId = Resque::enqueue($argv[1], $argv[2], $args, true);
18-
echo "Queued job ".$jobId."\n\n";
22+
echo "Queued job ".$jobId."\n\n";

0 commit comments

Comments
 (0)