From 2d1552f6f92e0deb92ae9ecf5a85ac57e708d17e Mon Sep 17 00:00:00 2001 From: Dennis Benz Date: Mon, 25 Nov 2024 11:21:06 +0100 Subject: [PATCH] Save correct service entry id in database (#1078) --- lib/Models/Playlists.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Models/Playlists.php b/lib/Models/Playlists.php index b03bc4ec..99b56580 100644 --- a/lib/Models/Playlists.php +++ b/lib/Models/Playlists.php @@ -619,13 +619,13 @@ public function setEntries(Array $entries) $playlist_video = PlaylistVideos::create([ 'video_id' => $db_video->id, 'playlist_id' => $this->id, - 'service_entry_id' => isset($entry->id) ?: null, + 'service_entry_id' => $entry->id ?? null, ]); } if (!is_null($playlist_video)) { // Always update entry id and order - $playlist_video->service_entry_id = isset($entry->id) ?: null; + $playlist_video->service_entry_id = $entry->id ?? null; $playlist_video->order = $key; $playlist_video->store(); }