From 092a8e85f1133c1a5bc90c8ba218e91d05457f1d Mon Sep 17 00:00:00 2001 From: luukas Date: Sun, 2 May 2021 18:52:10 +0300 Subject: [PATCH] Fix not being able to go to credits or contribute page when there are no servers --- app/classes/web/panel_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index 65347e33..98a0b4a1 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -61,7 +61,7 @@ class PanelHandler(BaseHandler): } # if no servers defined, let's go to the build server area - if page_data['server_stats']['total'] == 0 and page != "error": + if page_data['server_stats']['total'] == 0 and page != "error" and page != "credits" and page != "contribute": self.set_status(301) self.redirect("/server/step1") return