Skip to content

Commit 64833f0

Browse files
committed
Regression
1 parent 4816554 commit 64833f0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/Tmdb/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Client
3131
use ApiMethodsTrait;
3232

3333
/** Client Version */
34-
const VERSION = '2.0.5';
34+
const VERSION = '2.0.6';
3535

3636
/** Base API URI */
3737
const TMDB_URI = 'api.themoviedb.org/3/';

lib/Tmdb/Model/Common/GenericCollection.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,9 @@ function ($key, $value) use ($id) {
333333
return null;
334334
}
335335

336-
return array_shift($result->getAll());
336+
$collection = $result->getAll();
337+
338+
return array_shift($collection);
337339
}
338340

339341
/**

0 commit comments

Comments
 (0)