1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 23:40:50 +00:00

beego.AppConfig.Strings bug

This commit is contained in:
git 2014-11-20 16:35:04 +08:00
parent 07c628c7e9
commit d0b43ef4f5

View File

@ -110,7 +110,7 @@ func (b *beegoAppConfig) String(key string) string {
func (b *beegoAppConfig) Strings(key string) []string {
v := b.innerConfig.Strings(RunMode + "::" + key)
if len(v) == 0 {
if v[0] == "" {
return b.innerConfig.Strings(key)
}
return v