Skip to content

Commit

Permalink
Regression
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Mar 26, 2015
1 parent 4816554 commit 64833f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Tmdb/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Client
use ApiMethodsTrait;

/** Client Version */
const VERSION = '2.0.5';
const VERSION = '2.0.6';

/** Base API URI */
const TMDB_URI = 'api.themoviedb.org/3/';
Expand Down
4 changes: 3 additions & 1 deletion lib/Tmdb/Model/Common/GenericCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ function ($key, $value) use ($id) {
return null;
}

return array_shift($result->getAll());
$collection = $result->getAll();

return array_shift($collection);
}

/**
Expand Down

0 comments on commit 64833f0

Please sign in to comment.