Skip to content

Commit

Permalink
derp
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Jan 17, 2024
1 parent fc6bb2d commit bf9b475
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/sys_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ function _d(string $name, mixed $value): void
if (!defined($name)) {
$env = getenv("SHM_{$name}");
if ($env !== false) {
try {
$value = json_decode($env);
}
catch(\Exception $e) {
$value = $env;
}
$value = json_decode($env) ?? $env;
}
define($name, $value);
}
Expand Down

0 comments on commit bf9b475

Please sign in to comment.