mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Merge pull request #152 from liujingyu/patch-1
repair PHP Notice, on line 17
This commit is contained in:
commit
e684d19d4f
1 changed files with 6 additions and 2 deletions
|
@ -17,6 +17,10 @@ $args = array(
|
|||
'test' => 'test',
|
||||
),
|
||||
);
|
||||
if (empty($argv[2])) {
|
||||
$jobId = Resque::enqueue('default', $argv[1], $args, true);
|
||||
} else {
|
||||
$jobId = Resque::enqueue($argv[1], $argv[2], $args, true);
|
||||
}
|
||||
|
||||
$jobId = Resque::enqueue($argv[1], $argv[2], $args, true);
|
||||
echo "Queued job ".$jobId."\n\n";
|
||||
echo "Queued job ".$jobId."\n\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue