Commit 802aa161 authored by astaxie's avatar astaxie

Merge pull request #935 from mnhkahn/master

beego1.4.2,beego.AppConfig.Strings与老版本代码不兼容问题  
parents f2df07f6 d0b43ef4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment