Skip to content

Commit

Permalink
Lookup catalog profile by name bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
por committed Apr 4, 2011
1 parent 27c1732 commit fbd2f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/EchoNest/Api/Catalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 75,7 @@ public function status($ticket)
public function profile($id, $byName = false)
{
$response = $this->client->get('catalog/profile', array(
$byName ? 'id' : name => $id,
$byName ? 'name' : 'id' => $id,
));

return $response['catalog'];
Expand Down

0 comments on commit fbd2f35

Please sign in to comment.