Permalink
Browse files

Fix fro pull request #448

  • Loading branch information...
1 parent a4a390e commit b10b0cc6808a25d7f27d1c7aec5bbfd4d30f62b2 @romaninsh romaninsh committed Mar 3, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Auth/Basic.php
View
@@ -59,8 +59,8 @@ class Auth_Basic extends AbstractController {
function init(){
parent::init();
- // Register as auth handler.
- $this->api->auth=$this;
+ // Register as auth handler, if it's not set yet
+ if(@!$this->api->auth)$this->api->auth=$this;
if (!$this->api->hasMethod('initializeSession')) {
// No session support

0 comments on commit b10b0cc

Please sign in to comment.