From 010cc10d53592dd1d7100cdc93b22a02fb99cdda Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Tue, 21 Apr 2020 14:07:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=AE=A1=E7=90=86=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/system/model/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catch/system/model/Config.php b/catch/system/model/Config.php index b84f4a0..c7638d5 100644 --- a/catch/system/model/Config.php +++ b/catch/system/model/Config.php @@ -198,7 +198,7 @@ class Config extends CatchModel ->select(); foreach ($configs as $config) { - if ($config->value) { + if ($config->value !== '') { $data[$config->k] = $config->value; } else { $data[$config->k] = $this->getConfig($config->id);