From eba9fc3510ed56e26f389bcbd81ec7c6ed3386bf Mon Sep 17 00:00:00 2001 From: Reza Date: Wed, 29 Nov 2023 12:06:11 +0100 Subject: [PATCH] fix fiber version --- lib/settings/yml/yml.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/settings/yml/yml.go b/lib/settings/yml/yml.go index 9f277989..149409ac 100644 --- a/lib/settings/yml/yml.go +++ b/lib/settings/yml/yml.go @@ -52,6 +52,9 @@ func (config *Yaml) SetMulti(data map[string]interface{}) error { return config.write() } func (config *Yaml) Register(settings ...interface{}) error { + if config.data == nil { + config.data = map[string]interface{}{} + } for _, s := range settings { var v = generic.Parse(s) if !v.Is("settings.Setting") {