修复缺少isset($configALL['notify_on_change'])判断警告

This commit is contained in:
iyuu.cn 2020-07-24 16:03:09 +08:00
parent a9d9fb637d
commit 5418c02227
2 changed files with 3 additions and 3 deletions

View File

@ -852,7 +852,7 @@ class AutoReseed
private static function wechatMessage()
{
global $configALL;
if ($configALL['notify_on_change'] && self::$wechatMsg['reseedSuccess'] == 0 && self::$wechatMsg['reseedError'] == 0) {
if (isset($configALL['notify_on_change']) && $configALL['notify_on_change'] && self::$wechatMsg['reseedSuccess'] == 0 && self::$wechatMsg['reseedError'] == 0) {
return;
}
$br = PHP_EOL;

View File

@ -58,10 +58,10 @@ if (file_exists(ROOT_PATH."/config/config.php")) {
echo microtime(true).' 请编辑配置文件config.php以免后续版本升级覆盖配置'.PHP_EOL;
$t = 30;
do {
echo microtime(true)." 请编辑配置文件config.php{$t}秒后继续...".PHP_EOL;
echo microtime(true)." 请编辑配置文件config.php{$t}秒后退出...".PHP_EOL;
sleep(1);
} while (--$t > 0);
exit;
}
echo microtime(true).' 全局配置载入完成!'.PHP_EOL;
// 读取支持列表