diff --git a/TVMaze/TVMazeClient.php b/TVMaze/TVMazeClient.php index 7917983..c4b306e 100644 --- a/TVMaze/TVMazeClient.php +++ b/TVMaze/TVMazeClient.php @@ -347,10 +347,13 @@ public function getAllShowsByPage($page = null) if ($page == null) { $url = self::API_URL . '/shows'; } else { - $url = self::API_URL . '/shows?page' . $page; + $url = self::API_URL . '/shows?page=' . $page; } $shows = $this->getFile($url); + if (false === $shows) { + return false; + } $relevant_shows = []; foreach ($shows as $series) {