From b851f4c76f5e6894157c537851ba56c7e5b3fd83 Mon Sep 17 00:00:00 2001 From: dongpd Date: Mon, 25 May 2020 18:01:30 +0700 Subject: [PATCH] fix check file config --- controllers/ConfigController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/ConfigController.php b/controllers/ConfigController.php index a5f910c5..0a5cc47b 100644 --- a/controllers/ConfigController.php +++ b/controllers/ConfigController.php @@ -233,6 +233,10 @@ class ConfigController extends Controller { ]) ] ])), true); + + if (!$checkConfig['status']) + return $this->redirect(['/config']); + $config_json = $this->config_json; if ($checkConfig['status']) $config_json = json_decode($checkConfig['data'], true);