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(); }