Fix decoding GetLangRef values

This commit is contained in:
Marius Orcsik 2019-12-22 14:05:06 +01:00
parent 59fd37615d
commit cecfaf37ac
No known key found for this signature in database
GPG key ID: 77618B618F79EB72

View file

@ -308,7 +308,7 @@ func JSONGetItems(data []byte, prop string) ItemCollection {
func JSONGetLangRefField(data []byte, prop string) LangRef {
val, err := jsonparser.GetString(data, prop)
if err != nil {
return LangRef(err.Error())
return ""
}
return LangRef(val)
}