Skip to content

Commit c5d57f7

Browse files
authored
Merge pull request #12 from Dragony/patch-1
Fixed getTopClips() always failing
2 parents 50322ed + a09c9e1 commit c5d57f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/Clips.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getTopClips($channel = null, $cursor = null, $game = null, $limi
5454
}
5555

5656
$channel = trim($channel, ', ');
57-
if ($count = count(explode(',', $channel) > 10)) {
57+
if (($count = count(explode(',', $channel)) > 10)) {
5858
throw new TwitchApiException(sprintf('Only a maximum of 10 channels can be queried. %d requested.', $count));
5959
}
6060
}

0 commit comments

Comments
 (0)