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; } }