mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix default global values being added to database when MULTISITE is set to "no"
This commit is contained in:
parent
4088067186
commit
4f4a8b5081
1 changed files with 8 additions and 0 deletions
|
|
@ -570,6 +570,11 @@ class Database:
|
|||
)
|
||||
|
||||
if global_value is None:
|
||||
if value == setting.default or (
|
||||
not value.strip() and setting.default is None
|
||||
):
|
||||
continue
|
||||
|
||||
to_put.append(
|
||||
Global_values(
|
||||
setting_id=key,
|
||||
|
|
@ -960,6 +965,9 @@ class Database:
|
|||
Plugins.name,
|
||||
Plugins.description,
|
||||
Plugins.version,
|
||||
Plugins.method,
|
||||
Plugins.data,
|
||||
Plugins.checksum,
|
||||
Plugins.external,
|
||||
)
|
||||
.filter_by(id=plugin["id"])
|
||||
|
|
|
|||
Loading…
Reference in a new issue