Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Resolve issue #102 (routing_keys)

  • Loading branch information...
commit ca5105132ca0f168197c08f1ff7b73f2883fe7f6 1 parent 5083267
@mbiagetti mbiagetti authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  RabbitMq/BaseAmqp.php
View
2  RabbitMq/BaseAmqp.php
@@ -131,7 +131,7 @@ protected function queueDeclare()
$this->queueOptions['auto_delete'], $this->queueOptions['nowait'],
$this->queueOptions['arguments'], $this->queueOptions['ticket']);
- if (count($this->queueOptions['routing_keys']) > 0) {
+ if (isset($this->queueOptions['routing_keys']) && count($this->queueOptions['routing_keys']) > 0) {
foreach ($this->queueOptions['routing_keys'] as $routingKey) {
$this->ch->queue_bind($queueName, $this->exchangeOptions['name'], $routingKey);
}
Please sign in to comment.
Something went wrong with that request. Please try again.