From 4327db27f8d2638f4a8f1e69167b21ab696f95dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 17 May 2021 17:35:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Abstracts/Config.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/System/Abstracts/Config.php b/System/Abstracts/Config.php index 7e1087dc..488463b7 100644 --- a/System/Abstracts/Config.php +++ b/System/Abstracts/Config.php @@ -53,6 +53,9 @@ class Config extends Component public static function sets(array $configs) { $config = Snowflake::app()->getConfig(); + if (empty($configs)) { + return; + } $config->data = $configs; }