Skip to content

Loading…

Resolve issue #102 #103

Merged
merged 1 commit into from

2 participants

@mbiagetti

No description provided.

@videlalvaro videlalvaro merged commit 913c061 into videlalvaro:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 5, 2013
  1. Resolve issue #102 (routing_keys)

    Matteo Biagetti committed
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);
}
Something went wrong with that request. Please try again.