Skip to content

Commit

Permalink
Merge branch 'pr/11'
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbloom committed Sep 12, 2013
2 parents cd5e95a + b6a5c1e commit c3ac398
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion class.baseclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,13 @@ protected function array_to_params($params) {
$paramstring = '';
if ($params != null) {
foreach ($params as $parameter => $value) {
$paramstring = $paramstring . '&' . $parameter . '=' . urlencode($value);
if(is_array($value)){
foreach($value as $subparam) {
$paramstring = $paramstring . '&' . $parameter . '=' . urlencode($subparam);
}
} else {
$paramstring = $paramstring . '&' . $parameter . '=' . urlencode($value);
}
}
}
return $paramstring;
Expand Down

0 comments on commit c3ac398

Please sign in to comment.