Skip to content

Commit

Permalink
[BUGFIX] Prevent exception if image has no title (#)
Browse files Browse the repository at this point in the history
Fixes issue with PHP  type error when using multiple image mode with an image without a title.

Fixes #60
  • Loading branch information
mediaessenz authored Feb 13, 2024
1 parent 8a96dee commit 3ca74cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Model/GalleryItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function getTtContentUid(): int
public function getTitle(): string
{
if ($this->isVirtual()) {
return $this->getImageData()['title'];
return $this->getImageData()['title'] ?? '';
}

return $this->title;
Expand Down

0 comments on commit 3ca74cd

Please sign in to comment.