From 67d8f99c891c6a4a1e0996e8f57f6c3da944a020 Mon Sep 17 00:00:00 2001 From: Joseph Date: Mon, 9 Oct 2023 13:16:35 +0100 Subject: [PATCH] Feed: Use elseif in `checkInputs()` when checking playlist/channel id --- include/Feed.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/Feed.php b/include/Feed.php index 988ba8ac..8a952bca 100644 --- a/include/Feed.php +++ b/include/Feed.php @@ -128,9 +128,7 @@ private function checkInputs(): void $this->feedId = $_GET['channel_id']; $this->feedType = 'channel'; - } - - if (isset($_GET['playlist_id'])) { + } elseif (isset($_GET['playlist_id'])) { if (empty($_GET['playlist_id']) === true || Validate::playlistId($_GET['playlist_id']) === false) { throw new Exception('Invalid playlist ID parameter given.'); }