changeset 8141 | cb605fb60e32 |
parent 8085 | 8ca11201bfe7 |
child 8149 | 5c91fb62338e |
child 8295 | 2fc8b83dd736 |
--- a/plugins/mod_storage_sql.lua Thu Apr 27 12:41:53 2017 +0200 +++ b/plugins/mod_storage_sql.lua Sun Apr 30 10:44:53 2017 +0100 @@ -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;