From df3df308404e079cd6312cc62f13de5f52483b70 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 13 Jul 2022 15:11:37 +0200 Subject: [PATCH] fix 500 errors --- files/templates/header.html | 2 +- files/templates/sidebar_LGBDropTheT.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/templates/header.html b/files/templates/header.html index 363750273..59debf871 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -17,7 +17,7 @@
{% include "journoid_banner.html" %}
-{% elif g.loggedout_counter+g.loggedin_counter > 100 and not err %} +{% elif g.loggedin_counter and g.loggedin_counter+g.loggedout_counter > 100 and not err %}
diff --git a/files/templates/sidebar_LGBDropTheT.html b/files/templates/sidebar_LGBDropTheT.html index 4ebbc2953..f9d59a5f0 100644 --- a/files/templates/sidebar_LGBDropTheT.html +++ b/files/templates/sidebar_LGBDropTheT.html @@ -10,7 +10,7 @@ sidebar image - {% if g.loggedout_counter+g.loggedin_counter > 100 %} + {% if g.loggedin_counter and g.loggedin_counter+g.loggedout_counter > 100 %}

{{ g.loggedin_counter + g.loggedout_counter }} people here now