From 541015ec6f5b6838d5ac59fbfef12aac086311e7 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 15 Feb 2023 16:17:43 +0100 Subject: [PATCH] wip #5735 @0.25 --- src/app/Magic/EntityData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Magic/EntityData.php b/src/app/Magic/EntityData.php index bc8376d..a47fc96 100644 --- a/src/app/Magic/EntityData.php +++ b/src/app/Magic/EntityData.php @@ -74,7 +74,7 @@ class EntityData extends Data { /** @var Media $media */ $media = $this->getMedia($offset); - if (!$media) { + if (!$media || !$media->get(0)) { return null; } return $media->get(0)->getPath($conversionName); -- 2.39.5