getParsedBodyParam('selected_fld', []); if (! is_array($selected) || $selected === []) { $this->response->setRequestStatus(false); $this->response->addJSON('message', __('No column selected.')); return; } Assert::allString($selected); $centralColsError = $this->centralColumns->syncUniqueColumns($selected, false); if ($centralColsError instanceof Message) { $GLOBALS['message'] = $centralColsError; } if (empty($GLOBALS['message'])) { $GLOBALS['message'] = Message::success(); } ($this->structureController)($request); } }