Skip to content

Commit

Permalink
Merge pull request #19 from codex-team/hot-fix
Browse files Browse the repository at this point in the history
[fixed] Parse error: syntax error, unexpected '?'
  • Loading branch information
talyguryn authored Jun 5, 2018
2 parents 96c7bea + 3748799 commit 5ca2150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helper/Headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static function get()
* When doing HTTP authentication this variable is set
* to the password provided by the user.
*/
$basic_pass = $_SERVER['PHP_AUTH_PW'] ?? '';
$basic_pass = $_SERVER['PHP_AUTH_PW'] ?: '';
$headers['Authorization'] = 'Basic ' . base64_encode($_SERVER['PHP_AUTH_USER'] . ':' . $basic_pass);

/**
Expand Down

0 comments on commit 5ca2150

Please sign in to comment.