diff --git a/src/applications/pholio/view/PholioMockEmbedView.php b/src/applications/pholio/view/PholioMockEmbedView.php --- a/src/applications/pholio/view/PholioMockEmbedView.php +++ b/src/applications/pholio/view/PholioMockEmbedView.php @@ -26,6 +26,9 @@ if (!empty($this->images)) { $images_to_show = array_intersect_key( $this->mock->getImages(), array_flip($this->images)); + } + + if ($images_to_show) { foreach ($images_to_show as $image) { $thumbfile = $image->getFile(); $thumbnail = $thumbfile->getThumb280x210URI();