Skip to content

Commit

Permalink
Merge pull request #1 from adriel/patch-1
Browse files Browse the repository at this point in the history
Missing equals + error checking added
  • Loading branch information
tavy315 authored Nov 10, 2016
2 parents 1d9c8d9 + b4fcac2 commit a4116c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TVMaze/TVMazeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a4116c8

Please sign in to comment.