Skip to content

Commit

Permalink
fix undefined index HTTP_AUTHORIZATION
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Gräber committed Oct 21, 2013
1 parent 44a0e18 commit 08e026f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DBV.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public function authenticate()
} else {
if (function_exists('apache_request_headers')) {
$headers = apache_request_headers();
$authorization = $headers['HTTP_AUTHORIZATION'];
$authorization = array_key_exists('HTTP_AUTHORIZATION', $headers)
? $headers['HTTP_AUTHORIZATION']
: '';
}
}

Expand Down Expand Up @@ -437,4 +439,4 @@ static public function instance()
return $instance;
}

}
}

0 comments on commit 08e026f

Please sign in to comment.