From 39e016b6b2959aed05e51bb53e1a765f2ea397ce Mon Sep 17 00:00:00 2001 From: Sasha Rybkin Date: Tue, 3 Aug 2021 12:33:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/MoleController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/console/MoleController.php b/console/MoleController.php index 4a33216..cdad692 100644 --- a/console/MoleController.php +++ b/console/MoleController.php @@ -66,7 +66,11 @@ class MoleController extends Controller $control = new $class($task->controller, 'product'); if (method_exists($control, $action)) { - $control->{$action}(unserialize($task->params)); + $params = $control->{$action}(unserialize($task->params)); + if(!empty($params)) + { + $task->params = serialize($params); + } $task->isReady = 1; } }