diff --git a/templates/CRM/Case/Form/CaseFilter.tpl b/templates/CRM/Case/Form/CaseFilter.tpl
index c078bcee54e1..4b425c00e10e 100644
--- a/templates/CRM/Case/Form/CaseFilter.tpl
+++ b/templates/CRM/Case/Form/CaseFilter.tpl
@@ -21,7 +21,7 @@
{$form.case_status_id.label} {$form.case_status_id.html}
|
- {if $accessAllCases && $form.upcoming}
+ {if $accessAllCases && isset($form.upcoming)}
{$form.upcoming.html} {$form.upcoming.label}
diff --git a/templates/CRM/Case/Page/DashBoard.tpl b/templates/CRM/Case/Page/DashBoard.tpl
index f8bcfce4db50..41f19e33f408 100644
--- a/templates/CRM/Case/Page/DashBoard.tpl
+++ b/templates/CRM/Case/Page/DashBoard.tpl
@@ -56,7 +56,7 @@
{foreach from=$casesSummary.headers item=header}
{assign var="caseStatus" value=$header.status}
|
- {if $row.$caseStatus}
+ {if isset($row.$caseStatus)}
{$row.$caseStatus.count}
{else}
0
|