mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-11-12 17:18:48 +01:00
fix: checking images array validation (#623)
This commit is contained in:
1 parent
03778f8339
commit
01952f3ff4
1 file changed
+2
-2
@@ -86,7 +86,7 @@ class MoveImageToAppropriateFolderSeeder extends Seeder
|
||||
if ($artist instanceof Artist) {
|
||||
$images = $artist->images()->get();
|
||||
|
||||
if (empty($images)) continue;
|
||||
if (count($images) === 0) continue;
|
||||
|
||||
$largeCover = $images->where(Image::ATTRIBUTE_FACET, ImageFacet::COVER_LARGE)->first();
|
||||
$smallCover = $images->where(Image::ATTRIBUTE_FACET, ImageFacet::COVER_SMALL)->first();
|
||||
@@ -151,7 +151,7 @@ class MoveImageToAppropriateFolderSeeder extends Seeder
|
||||
if ($studio instanceof Studio) {
|
||||
$images = $studio->images()->get();
|
||||
|
||||
if (empty($images)) continue;
|
||||
if (count($images) === 0) continue;
|
||||
|
||||
$largeCover = $images->where(Image::ATTRIBUTE_FACET, ImageFacet::COVER_LARGE)->first();
|
||||
|
||||
|
||||
Reference in new issue
Block a user