phpstan update
This commit is contained in:
parent
50fe879f16
commit
36ba147430
4 changed files with 27 additions and 11 deletions
|
@ -301,7 +301,14 @@ class PlaylistArchiveStream extends ZipArchive implements StreamInterface
|
|||
}
|
||||
} else {
|
||||
// Start streaming the first video.
|
||||
$this->startVideoStream(current($this->videos));
|
||||
$video = current($this->videos);
|
||||
if ($video) {
|
||||
$this->startVideoStream($video);
|
||||
} else {
|
||||
$this->push_error('Playlist was empty');
|
||||
$this->finish();
|
||||
$this->isComplete = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue