diff options
author | Matthew Wild <mwild1@gmail.com> | 2017-04-30 10:44:53 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2017-04-30 10:44:53 +0100 |
commit | 4812b7e07c8810c158bad1f99eb43cbd30c33ca3 (patch) | |
tree | 23bf534f97758cd9a0a381256be32d5dfe523472 /plugins/mod_storage_sql.lua | |
parent | afa9082458b586321faf6aa4afa72cf6ba30c26b (diff) | |
download | prosody-4812b7e07c8810c158bad1f99eb43cbd30c33ca3.tar.gz prosody-4812b7e07c8810c158bad1f99eb43cbd30c33ca3.zip |
mod_storage_sql: Fix logic error introduced by variable rename in aa9f198cb3c9 (thanks waqas)
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r-- | plugins/mod_storage_sql.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index aab43d1f..d4a5f871 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -33,7 +33,7 @@ local function serialize(value) 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; |