Software /
code /
prosody
Diff
plugins/mod_storage_sql.lua @ 8146:5c91fb62338e
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 17 May 2017 01:06:20 +0200 |
parent | 8083:32898a74b9d9 |
parent | 8138:cb605fb60e32 |
child | 8294:90576b60f2d0 |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Wed Apr 26 11:55:27 2017 +0200 +++ b/plugins/mod_storage_sql.lua Wed May 17 01:06:20 2017 +0200 @@ -33,7 +33,7 @@ return "xml", tostring(value); elseif t == "table" then local encoded,err = json.encode(value); - if value then return "json", encoded; end + if encoded then return "json", encoded; end return nil, err; end return nil, "Unhandled value type: "..t;