protected function formatArgs() { $args = parent::formatArgs(); $args['touser'] = $args['to']; if ($args['touser'] && is_array($args['touser'])) { $args['touser'] = join("|", $args['touser']); } if ($args['toparty'] && is_array($args['toparty'])) { $args['toparty'] = join("|", $args['toparty']); } if ($args['totag'] && is_array($args['totag'])) { $args['totag'] = join("|", $args['totag']); } unset($args['to']); return $args; }