Fix the bug where artists cannot be removed

This commit is contained in:
An Phan 2016-06-16 18:08:36 +08:00
parent ade825db02
commit b66a7835ca
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2

View file

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