Shorten check for empty auth header

refs #11151
This commit is contained in:
Alexander A. Klimov 2016-02-15 14:22:36 +01:00
parent 8a4f15d32c
commit 74b4c344d6
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ class Auth
if ($request->isXmlHttpRequest() || ! $request->isApiRequest()) {
return false;
}
if (($header = $request->getHeader('Authorization')) === false || empty($header)) {
if (empty($header = $request->getHeader('Authorization'))) {
$this->challengeHttp();
}
list($scheme) = explode(' ', $header, 2);