Skip to content

Commit f18e999

Browse files
authored
Merge pull request #37 from OnekO/patch-1
BUGFIX: $auth_header always setted
2 parents 1b5ac8f + 8de9b80 commit f18e999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ public static function get_auth_header() {
616616
/**
617617
* If the $auth header is set, use it. Otherwise attempt to use the $redirect_auth header
618618
*/
619-
$auth_header = isset( $auth_header ) ? $auth_header : ( isset( $redirect_auth_header ) ? $redirect_auth_header : null );
619+
$auth_header = $auth_header !== false ? $auth_header : ( $redirect_auth_header !== false ? $redirect_auth_header : null );
620620

621621
/**
622622
* Return the auth header, pass through a filter

0 commit comments

Comments
 (0)