From 61b86f06e7b2385f7b1f4016e42252b0253ce97e Mon Sep 17 00:00:00 2001 From: Andreas Oesterreicher Date: Wed, 26 Jul 2017 16:30:10 +0200 Subject: [PATCH] Anzeige bei fehlendem CI_ENV optimiert --- system/environment.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/system/environment.php b/system/environment.php index 7a43ed85b..dc4e6b992 100644 --- a/system/environment.php +++ b/system/environment.php @@ -100,7 +100,7 @@ printValue("Unoconv", $unoconvVersion, "0.7"); // Codeigniter Environment Variable CI_ENV $CI_ENV = getenv('CI_ENV'); -printValue("CI_ENV", $CI_ENV); +printValue("CI_ENV", ($CI_ENV!=''?$CI_ENV:false),'not set -> defaults to development'); // ZIP printValue("zip", checkInstalled('zip')); @@ -142,7 +142,6 @@ echo ' function printValue($module, $status_ok, $message='') { - if(!is_bool($status_ok)) { $output = $status_ok; @@ -156,9 +155,9 @@ function printValue($module, $status_ok, $message='') echo ' '.$module.' - '.$output.''; + '.$output.''; if(!$status_ok && $message!='') - echo $message; + echo ' '.$message; echo ''; echo ''; }