Skip to content
Browse files

Merge pull request #103 from mbiagetti/master

Resolve issue #102
  • Loading branch information...
2 parents 5083267 + ca51051 commit 913c061c3bf96fd1d64f762526df5bb56cb7bd37 @videlalvaro committed Mar 5, 2013
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);
}

0 comments on commit 913c061

Please sign in to comment.
Something went wrong with that request. Please try again.