diff --git a/templates/CRM/Mailing/Page/Report.tpl b/templates/CRM/Mailing/Page/Report.tpl
index 78d3150287a0..4c91bd823c27 100644
--- a/templates/CRM/Mailing/Page/Report.tpl
+++ b/templates/CRM/Mailing/Page/Report.tpl
@@ -21,7 +21,7 @@
{ts}Successful Deliveries{/ts} |
{$report.event_totals.delivered} ({$report.event_totals.delivered_rate|string_format:"%0.2f"}%) |
{$report.event_totals.actionlinks.delivered} |
-{if $report.mailing.open_tracking}
+{if array_key_exists('mailing', $report) && $report.mailing.open_tracking}
{ts}Unique Opens{/ts} |
{$report.event_totals.opened} ({$report.event_totals.opened_rate|string_format:"%0.2f"}%) |
{$report.event_totals.actionlinks.opened_unique} |
@@ -29,7 +29,7 @@
{$report.event_totals.total_opened} |
{$report.event_totals.actionlinks.opened} |
{/if}
-{if $report.mailing.url_tracking}
+{if array_key_exists('mailing', $report) && $report.mailing.url_tracking}
{ts}Click-throughs{/ts} |
{$report.event_totals.url} ({$report.event_totals.clickthrough_rate|string_format:"%0.2f"}%) |
{$report.event_totals.actionlinks.clicks} |
@@ -119,7 +119,7 @@
{/if}
-{if $report.mailing.url_tracking && $report.click_through|@count > 0}
+{if array_key_exists('mailing', $report) && $report.mailing.url_tracking && $report.click_through|@count > 0}