Skip to content

Commit c4cd26a

Browse files
committed
fix the same notice for php-amqp
1 parent d97ec3e commit c4cd26a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

php-amqp/emit_log_direct.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
$channel = new AMQPChannel($connection);
1313

1414

15-
$routing_key = $severity = $argv[1];
16-
if(empty($severity)) $severity = 'info';
15+
$routing_key = $severity = isset($argv[1]) && !empty($argv[1]) ? $argv[1] : 'info';
1716

1817
$message = implode(' ',array_slice($argv, 2));
1918
if(empty($message)) $message = 'Hello World!';

0 commit comments

Comments
 (0)