From 590d1c8ba716b32afac44c53ad120febefb4926d Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 7 Jan 2022 14:16:03 +0800 Subject: [PATCH] Update Config.php --- app/admin/controller/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/controller/Config.php b/app/admin/controller/Config.php index 28083a43d..84f301fea 100644 --- a/app/admin/controller/Config.php +++ b/app/admin/controller/Config.php @@ -71,7 +71,7 @@ class Config extends Controller SystemService::instance()->setRuntime(null, [$xpath => 'admin']); } // 修改网站 ICON 图标文件 - if (!($icon = $this->request->post('site_icon'))) { + if (($icon = $this->request->post('site_icon'))) { if (($info = LocalStorage::down($icon)) && !empty($info['file'])) try { $favicon = new FaviconExtend($info['file']); $favicon->saveIco($this->app->getRootPath() . 'public/favicon.ico');