diff --git a/app/Services/Media.php b/app/Services/Media.php index 588f1448..0d5a28cb 100644 --- a/app/Services/Media.php +++ b/app/Services/Media.php @@ -225,6 +225,6 @@ class Media $inUseArtists[] = Artist::UNKNOWN_ID; $inUseArtists[] = Artist::VARIOUS_ID; - Artist::whereNotIn('id', $inUseArtists)->delete(); + Artist::whereNotIn('id', array_filter($inUseArtists))->delete(); } }