From b66a7835caa3c900bf81acf4ccbeeea4df4f0699 Mon Sep 17 00:00:00 2001 From: An Phan Date: Thu, 16 Jun 2016 18:08:36 +0800 Subject: [PATCH] Fix the bug where artists cannot be removed --- app/Services/Media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }