diff --git a/layouts/v7/modules/ExtensionStore/Promotions.tpl b/layouts/v7/modules/ExtensionStore/Promotions.tpl index dd28c2e86a1ed2ce88bf535e2f2531dfd4864f0e..3192af5acd571b46bea11379657868c40affacae 100644 --- a/layouts/v7/modules/ExtensionStore/Promotions.tpl +++ b/layouts/v7/modules/ExtensionStore/Promotions.tpl @@ -16,6 +16,7 @@ <div class="banner"> <ul class="bxslider"> {foreach $PROMOTIONS as $PROMOTION} + {if is_object($PROMOTION)} <li> {assign var=SUMMARY value=$PROMOTION->get('summary')} {assign var=EXTENSION_NAME value=$PROMOTION->get('label')} @@ -26,8 +27,9 @@ {/if} <a onclick="window.open('{$LOCATION_URL}')"><img src="{if $PROMOTION->get('bannerURL')}{$PROMOTION->get('bannerURL')}{/if}" title="{$PROMOTION->get('label')}" /></a> </li> + {/if} {/foreach} </ul> </div> </div> -{/strip} \ No newline at end of file +{/strip}