Update functions.php

pull/13/head
qkqpttgf 2020-01-01 14:21:48 +08:00 committed by GitHub
parent 91489b4253
commit e54d64b6d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -435,6 +435,7 @@ function array_value_isnot_null($arr)
function setConfig($arr) function setConfig($arr)
{ {
$envs = json_decode(file_get_contents('config.json')); $envs = json_decode(file_get_contents('config.json'));
if ($envs=='') $envs = [];
foreach ($arr as $k1 => $v1) { foreach ($arr as $k1 => $v1) {
$evns[$k1] = $v1; $evns[$k1] = $v1;
} }