From ee8525a97450ece560ff762013cbd1ec51715615 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Wed, 8 Nov 2023 11:18:38 +0800 Subject: [PATCH] * Filter none value for solution check. --- module/install/control.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/module/install/control.php b/module/install/control.php index fbf06cd7c0..29fdba1306 100644 --- a/module/install/control.php +++ b/module/install/control.php @@ -483,8 +483,14 @@ class install extends control public function ajaxCheck() { $this->loadModel('common'); - $data = fixer::input('post')->get(); - $appMap = $this->loadModel('store')->getAppMapByNames($data->apps); + + $apps = (array)$this->post->apps; + foreach($apps as $index => $app) + { + if($app == $this->lang->install->solution->skipInstall) unset($apps[$index]); + } + + $appMap = $this->loadModel('store')->getAppMapByNames($apps); $resources = array(); foreach($data->apps as $app) $resources[] = array('cpu' => $appMap->$app->cpu, 'memory' => $appMap->$app->memory);