From 8ccc31632acda3f5f1a13788a27fd2a07aa2e9d3 Mon Sep 17 00:00:00 2001 From: jingyu liu Date: Fri, 6 Dec 2013 14:14:57 +0800 Subject: [PATCH] repair PHP Notice, on line 17 when run , it has a PHP Notice. I think it's right command . --- demo/queue.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/demo/queue.php b/demo/queue.php index 52f2f0b..870086e 100644 --- a/demo/queue.php +++ b/demo/queue.php @@ -13,6 +13,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"; \ No newline at end of file +echo "Queued job ".$jobId."\n\n";