mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
Fix broken PHPStream logic (fixes #707)
This commit is contained in:
parent
77812d0070
commit
b1165c2f0f
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ class PHPStreamer extends Streamer implements StreamerInterface
|
|||
|
||||
if ($range[0] === '') {
|
||||
// First number missing, return last $range[1] bytes
|
||||
$start = $end = $fileSize - 1;
|
||||
$start = 0;
|
||||
$end = (int) $range[1];
|
||||
} elseif ($range[1] === '') {
|
||||
if ($range[0] === 0) {
|
||||
$start = 0;
|
||||
|
|
Loading…
Reference in a new issue