Skip to content

Commit

Permalink
Loop over array of strings, closes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklaw5 committed Mar 31, 2017
1 parent 1c182a2 commit 30857fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Streams.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getLiveStreams($channel = null, $game = null, $language = null,

$channel = trim($channel, ', ');
if ($this->apiVersionIsGreaterThanV4()) {
foreach ($channel as $chan) {
foreach (explode(',', $channel) as $chan) {
if (!is_numeric($chan)) {
throw new InvalidIdentifierException('channel');
}
Expand Down

0 comments on commit 30857fe

Please sign in to comment.