From 07692b08ce466b585a4fabaa1030590450f119d1 Mon Sep 17 00:00:00 2001 From: Anthony Axenov Date: Thu, 30 Oct 2025 09:35:05 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Core/IniFile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Core/IniFile.php b/app/Core/IniFile.php index 2fd7a47..f218dc9 100644 --- a/app/Core/IniFile.php +++ b/app/Core/IniFile.php @@ -96,9 +96,9 @@ class IniFile protected function initPlaylist(string $code, array|false $data): array { if ($data === false) { - $raw = $this->playlists[$code]; - empty($raw) && throw new PlaylistNotFoundException($code); - $data === false && $data = [ + $raw = $this->playlists[$code] + ?? throw new PlaylistNotFoundException($code); + $data = [ 'code' => $code, 'name' => $raw['name'] ?? "Плейлист #$code", 'description' => $raw['desc'] ?? null,