From 06e4bd9c4d8b1e4bfa47e86819a16fcc0388cb6b Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Wed, 26 May 2021 00:49:26 +0800 Subject: [PATCH] Check $_SERVER first for env value --- system/Commands/Utilities/Environment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Commands/Utilities/Environment.php b/system/Commands/Utilities/Environment.php index aa9cb8ae3aa2..f1b83fe28d0c 100644 --- a/system/Commands/Utilities/Environment.php +++ b/system/Commands/Utilities/Environment.php @@ -79,7 +79,7 @@ public function run(array $params) { if ($params === []) { - CLI::write(sprintf('Your environment is currently set as %s.', CLI::color(ENVIRONMENT, 'green'))); + CLI::write(sprintf('Your environment is currently set as %s.', CLI::color($_SERVER['CI_ENVIRONMENT'] ?? ENVIRONMENT, 'green'))); CLI::newLine(); return;