From 212aeefd3643b71318d96243d112ef836a65066f Mon Sep 17 00:00:00 2001 From: Frank Agerholm Date: Wed, 16 Jan 2019 19:46:15 +0100 Subject: [PATCH] get_cfg_from_env() default value bugfix --- config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.php b/config.php index 6883b5a..1f7ba82 100644 --- a/config.php +++ b/config.php @@ -3,7 +3,7 @@ function get_cfg_from_env($name, $default='') { - $ret = null; + $ret = $default; $tmp = getenv($name); if( isset($tmp) and $tmp != '' ) { $ret = $tmp;