Update functions.php
parent
91489b4253
commit
e54d64b6d3
|
@ -435,6 +435,7 @@ function array_value_isnot_null($arr)
|
|||
function setConfig($arr)
|
||||
{
|
||||
$envs = json_decode(file_get_contents('config.json'));
|
||||
if ($envs=='') $envs = [];
|
||||
foreach ($arr as $k1 => $v1) {
|
||||
$evns[$k1] = $v1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue