Skip to content

Commit

Permalink
Merge pull request #42 from tlshaheen/v3
Browse files Browse the repository at this point in the history
Check if $this->use_keystone is set before using it
  • Loading branch information
thousandsofthem committed Feb 5, 2015
2 parents e18f87d + 718e392 commit 4f9c5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IronMQ.class.php
Expand Up @@ -800,7 +800,7 @@ public function deleteMessagePushStatus($queue_name, $message_id, $subscription_
private function setJsonHeaders()
{
$this->setCommonHeaders();
$token = $this->use_keystone ? $this->getToken(): $this->token;
$token = isset($this->use_keystone) && $this->use_keystone ? $this->getToken(): $this->token;
$this->headers['Authorization'] ="OAuth {$token}";
}

Expand Down

0 comments on commit 4f9c5e0

Please sign in to comment.