Skip to content

Commit

Permalink
converts booleans to strings - EchoNest Api only takes true and false…
Browse files Browse the repository at this point in the history
… strings, not 1s and 0s
  • Loading branch information
bshaffer committed Mar 9, 2011
1 parent 4e70967 commit 944ac7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/request/EchoNestApiRequest.php
Expand Up @@ -241,6 +241,10 @@ protected function buildQuery($parameters)
}
unset($parameters[$key]);
}
elseif (is_bool($value))
{
$parameters[$key] = $value ? 'true' : 'false';
}
}

return http_build_query($parameters, '', '&') . $append;
Expand Down

0 comments on commit 944ac7e

Please sign in to comment.