Фикс 404
This commit is contained in:
@@ -96,9 +96,9 @@ class IniFile
|
|||||||
protected function initPlaylist(string $code, array|false $data): array
|
protected function initPlaylist(string $code, array|false $data): array
|
||||||
{
|
{
|
||||||
if ($data === false) {
|
if ($data === false) {
|
||||||
$raw = $this->playlists[$code];
|
$raw = $this->playlists[$code]
|
||||||
empty($raw) && throw new PlaylistNotFoundException($code);
|
?? throw new PlaylistNotFoundException($code);
|
||||||
$data === false && $data = [
|
$data = [
|
||||||
'code' => $code,
|
'code' => $code,
|
||||||
'name' => $raw['name'] ?? "Плейлист #$code",
|
'name' => $raw['name'] ?? "Плейлист #$code",
|
||||||
'description' => $raw['desc'] ?? null,
|
'description' => $raw['desc'] ?? null,
|
||||||
|
|||||||
Reference in New Issue
Block a user