get_cfg_from_env() default value bugfix
This commit is contained in:
parent
29898d6417
commit
212aeefd36
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue