mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix weird behavior when MULTISITE mode is set to no and the SERVER_NAME is empty
This commit is contained in:
parent
7a80516fb3
commit
f843cbda5b
1 changed files with 1 additions and 1 deletions
|
|
@ -723,7 +723,7 @@ class Database:
|
|||
}
|
||||
)
|
||||
else:
|
||||
if not (session.query(Services).with_entities(Services.id).filter_by(id=config.get("SERVER_NAME", "www.example.com").split(" ")[0]).first()):
|
||||
if config.get("SERVER_NAME", "www.example.com") and not session.query(Services).with_entities(Services.id).filter_by(id=config.get("SERVER_NAME", "www.example.com").split(" ")[0]).first():
|
||||
to_put.append(Services(id=config.get("SERVER_NAME", "www.example.com").split(" ")[0], method=method))
|
||||
|
||||
for key, value in config.items():
|
||||
|
|
|
|||
Loading…
Reference in a new issue