diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
index 48fdd60b5..7a5fac76b 100644
--- a/templates/base/footer.tmpl
+++ b/templates/base/footer.tmpl
@@ -67,7 +67,7 @@
{{if .RequireU2F}}
{{end}}
-{{if and .EnableCaptcha (eq .CaptchaType "recaptcha")}}
+{{if and .EnableCaptcha (and .CaptchaType (eq .CaptchaType "recaptcha"))}}
{{end}}
{{if .RequireTribute}}