Skip to content

Commit 30857fe

Browse files
committed
Loop over array of strings, closes #6
1 parent 1c182a2 commit 30857fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/Streams.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function getLiveStreams($channel = null, $game = null, $language = null,
5757

5858
$channel = trim($channel, ', ');
5959
if ($this->apiVersionIsGreaterThanV4()) {
60-
foreach ($channel as $chan) {
60+
foreach (explode(',', $channel) as $chan) {
6161
if (!is_numeric($chan)) {
6262
throw new InvalidIdentifierException('channel');
6363
}

0 commit comments

Comments
 (0)