Skip to content

Commit

Permalink
Feed: Use elseif in checkInputs() when checking playlist/channel id
Browse files Browse the repository at this point in the history
  • Loading branch information
VerifiedJoseph committed Oct 9, 2023
1 parent 76d9911 commit 67d8f99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand Down

0 comments on commit 67d8f99

Please sign in to comment.