Skip to content

Commit

Permalink
Merge pull request #127 from misterboe/CarouselFIX
Browse files Browse the repository at this point in the history
[BUGFIX] Fix FE Error if no image is set #115
  • Loading branch information
randomresult committed Jun 25, 2014
2 parents 9bf7ce3 + 9afc5d7 commit 440b9e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Resources/Private/Templates/Content/Carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ <h3>{elementData.header -> f:format.raw()}</h3>
</f:section>

<f:section name="Image">
<f:image src="{elementData.file}" alt="{elementData.header}" width="{settings.carousel.width}" />
<f:if condition="{elementData.file}">
<f:then>
<f:image src="{elementData.file}" alt="{elementData.header}" width="{settings.carousel.width}" />
</f:then>
</f:if>
</f:section>

<f:section name="Content">
Expand Down

0 comments on commit 440b9e8

Please sign in to comment.