get_cfg_from_env() default value bugfix

This commit is contained in:
Frank Agerholm 2019-01-16 19:46:15 +01:00
commit 212aeefd36

View file

@ -3,7 +3,7 @@
function get_cfg_from_env($name, $default='') { function get_cfg_from_env($name, $default='') {
$ret = null; $ret = $default;
$tmp = getenv($name); $tmp = getenv($name);
if( isset($tmp) and $tmp != '' ) { if( isset($tmp) and $tmp != '' ) {
$ret = $tmp; $ret = $tmp;