From fccc0cd20c64defa8b4e94a2fd0f785f492b15ee Mon Sep 17 00:00:00 2001 From: Netkas Date: Tue, 11 Jul 2023 14:36:36 -0400 Subject: [PATCH] Minor correction --- src/ConfigLib/Configuration.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ConfigLib/Configuration.php b/src/ConfigLib/Configuration.php index ffebcef..3457b5e 100644 --- a/src/ConfigLib/Configuration.php +++ b/src/ConfigLib/Configuration.php @@ -52,7 +52,8 @@ $name = strtolower($name); $name = str_replace(array('/', '\\', '.'), '_', $name); - if(!getenv(sprintf("CONFIGLIB_%s", strtoupper($name)))) + $env = getenv(sprintf("CONFIGLIB_%s", strtoupper($name))); + if($env !== false) { $environment_config = sprintf('CONFIGLIB_%s', strtoupper($name)); if(file_exists($environment_config))