getOutput(); } else { $table = (new CPartial('dataoverview.table.left', $data))->getOutput(); } $output = [ 'name' => $data['name'], 'body' => $table ]; if ($messages = get_and_clear_messages()) { $output['messages'] = array_column($messages, 'message'); } if ($data['user']['debug_mode'] == GROUP_DEBUG_MODE_ENABLED) { CProfiler::getInstance()->stop(); $output['debug'] = CProfiler::getInstance()->make()->toString(); } echo json_encode($output);