summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/db/config.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/db/config.go b/system/db/config.go
index 6f10e65..1ba71c8 100644
--- a/system/db/config.go
+++ b/system/db/config.go
@@ -180,7 +180,10 @@ func LoadCacheConfig() error {
return err
}
- fmt.Println(string(c))
+ if c == nil {
+ configCache = make(url.Values)
+ return nil
+ }
// convert json => map[string]interface{} => url.Values
var kv map[string]interface{}