diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Goals/templates/single_goal.tpl | 2 | ||||
-rw-r--r-- | plugins/Goals/templates/table_by_dimension.tpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Goals/templates/single_goal.tpl b/plugins/Goals/templates/single_goal.tpl index 23f0bbd9cb..4ebba700ea 100644 --- a/plugins/Goals/templates/single_goal.tpl +++ b/plugins/Goals/templates/single_goal.tpl @@ -30,7 +30,7 @@ $(document).ready( function() { {/literal} {if $displayFullReport} - {if $nb_conversions > 0 || $cart_nb_conversions > 0} + {if $nb_conversions > 0 || !empty($cart_nb_conversions)} {include file="Goals/templates/table_by_dimension.tpl"} {/if} {/if} diff --git a/plugins/Goals/templates/table_by_dimension.tpl b/plugins/Goals/templates/table_by_dimension.tpl index 84e105f748..941eb8cf51 100644 --- a/plugins/Goals/templates/table_by_dimension.tpl +++ b/plugins/Goals/templates/table_by_dimension.tpl @@ -46,7 +46,7 @@ </div> <div class="clear"></div> <script type="text/javascript"> -var preloadAbandonedCart = {if $cart_nb_conversions > 0 && $nb_conversions == 0}1{else}0{/if}; +var preloadAbandonedCart = {if !empty($cart_nb_conversions) && $nb_conversions == 0}1{else}0{/if}; {literal} $(document).ready( function() { var countLoaded = 0; |