Skip to content

Commit

Permalink
Fixing missing SHIELD var issue in Dotenv::getSettings method.
Browse files Browse the repository at this point in the history
  • Loading branch information
dl-unleashed-technologies committed Mar 14, 2022
1 parent fc8a94b commit 3d79c90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Dotenv.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,16 @@ public function getConfig(): array
if ($config['shield.settings']['shield_enable']) {
if (isset($_SERVER['SHIELD_USERNAME'])) {
$config['shield.settings']['credentials']['shield']['user'] = $_SERVER['SHIELD_USERNAME'];
}
else {
} elseif (isset($_SERVER['SHIELD'])) {
$config['shield.settings']['credentials']['shield']['user'] = $_SERVER['SHIELD'];
}

if (isset($_SERVER['SHIELD_PASSWORD'])) {
$config['shield.settings']['credentials']['shield']['pass'] = $_SERVER['SHIELD_PASSWORD'];
}
else {
} elseif (isset($_SERVER['SHIELD'])) {
$config['shield.settings']['credentials']['shield']['pass'] = $_SERVER['SHIELD'];
}

if (isset($_SERVER['SHIELD_MESSAGE'])) {
$config['shield.settings']['print'] = $_SERVER['SHIELD_MESSAGE'];
}
Expand Down

0 comments on commit 3d79c90

Please sign in to comment.