From 7eff037905733c79d9f4583b558bc3ba81b0cf41 Mon Sep 17 00:00:00 2001 From: "Code Hugger (Matthew Jones)" Date: Thu, 8 Jul 2021 13:36:23 -0400 Subject: [PATCH] Fixes #1088 - Check if flatpages.first is set (#1287) --- dashboard/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/templates/base.html b/dashboard/templates/base.html index 38dd2b874..fb76b9e70 100644 --- a/dashboard/templates/base.html +++ b/dashboard/templates/base.html @@ -44,7 +44,7 @@ {% get_flatpages '/copyright/' as flatpages %} - {% if flatpages.first.content %} + {% if flatpages.first and flatpages.first.content %}
{{ flatpages.first.content|safe }}