PHP function error fixed
This commit is contained in:
parent
5fd9c7c349
commit
29898d6417
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
function get_cfg_from_env($name, $default='') {
|
function get_cfg_from_env($name, $default='') {
|
||||||
$ret = null;
|
$ret = null;
|
||||||
$tmp = getent($name);
|
$tmp = getenv($name);
|
||||||
if( isset($tmp) and $tmp != '' ) {
|
if( isset($tmp) and $tmp != '' ) {
|
||||||
$ret = $tmp;
|
$ret = $tmp;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue