This commit is contained in:
Shish 2024-01-17 20:26:14 +00:00
parent fc6bb2d1b5
commit bf9b47510a

View file

@ -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);
}