diff --git a/lib/Trello/Api/AbstractApi.php b/lib/Trello/Api/AbstractApi.php index 31e9f64..25fd05f 100644 --- a/lib/Trello/Api/AbstractApi.php +++ b/lib/Trello/Api/AbstractApi.php @@ -254,13 +254,17 @@ protected function createParametersBody(array $parameters) if (is_bool($parameter)) { $parameters[$name] = $parameter ? 'true' : 'false'; } elseif (is_array($parameter)) { + $commaSeparatedParameters = ''; foreach ($parameter as $subName => $subParameter) { if (is_bool($subParameter)) { $subParameter = $subParameter ? 'true' : 'false'; } - $parameters[$name.'/'.$subName] = $subParameter; + if($commaSeparatedParameters != ''){ + $commaSeparatedParameters .= ','; + } + $commaSeparatedParameters .= $subParameter; } - unset($parameters[$name]); + $parameters[$name] = $commaSeparatedParameters; } elseif ($parameter instanceof DateTime) { $parameters[$name] = $parameter->format($parameter::ATOM); }