Skip to content

Commit

Permalink
fix overload falsy apache variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacefulSpecies committed Aug 14, 2018
1 parent 8abb4f9 commit fa1a24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public function setEnvironmentVariable($name, $value = null)

// If PHP is running as an Apache module and an existing
// Apache environment variable exists, overwrite it
if (function_exists('apache_getenv') && function_exists('apache_setenv') && apache_getenv($name)) {
if (function_exists('apache_getenv') && function_exists('apache_setenv') && apache_getenv($name) !== false) {
apache_setenv($name, $value);
}

Expand Down

0 comments on commit fa1a24d

Please sign in to comment.