Skip to content

Commit

Permalink
[BUGFIX] Fix FE Error if no image is set #115
Browse files Browse the repository at this point in the history
see #115
  • Loading branch information
misterboe committed Jun 24, 2014
1 parent 9c4b495 commit 9afc5d7
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.html()}</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 9afc5d7

Please sign in to comment.