Skip to content

Commit

Permalink
Changed logic to use suggested empty() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan committed Apr 30, 2017
1 parent f1e4feb commit a813d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Http/Headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function determineAuthorization(Environment $environment)
{
$authorization = $environment->get('HTTP_AUTHORIZATION');

if ((null === $authorization || $authorization === '') && is_callable('getallheaders')) {
if (empty($authorization) && is_callable('getallheaders')) {
$headers = getallheaders();
$headers = array_change_key_case($headers, CASE_LOWER);
if (isset($headers['authorization'])) {
Expand Down

0 comments on commit a813d70

Please sign in to comment.