From a0ab440e1a2c8db749c5f283a9f1ff87dc977ad2 Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Mon, 25 Nov 2019 11:11:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E9=98=B2=E6=B2=89=E8=BF=B7?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/ToolController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Controller/ToolController.class.php b/Application/Admin/Controller/ToolController.class.php index 58cb75272..5d36aab97 100644 --- a/Application/Admin/Controller/ToolController.class.php +++ b/Application/Admin/Controller/ToolController.class.php @@ -346,7 +346,7 @@ class ToolController extends ThinkController { ])->save([ 'config' => $ageConfigJson, 'type' => 1, - 'status' => $config['status'] ? $config['status'] : $config['bat'] + 'status' => isset($config['status']) ? $config['status'] : $config['bat'] ]); }