mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-01 03:19:59 +00:00
config: add empty config if not existing yet
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
function pfUI:UpdateConfig(group, subgroup, entry, value)
|
||||
-- create empty config if not existing
|
||||
if not pfUI_config then
|
||||
pfUI_config = {}
|
||||
end
|
||||
|
||||
-- check for missing config groups
|
||||
if not pfUI_config[group] then
|
||||
pfUI_config[group] = {}
|
||||
|
||||
Reference in New Issue
Block a user