diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-12-13 19:27:14 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-12-13 19:27:14 +0500 |
commit | d4016956295fdb1836dd9c5134193609b01280f3 (patch) | |
tree | e2a24616061bace9dcfd586a54c2f974b43480ec /plugins/mod_storage_sql.lua | |
parent | 7491c61427b2aa0717b99b4b65ef0efcdba3c0c4 (diff) | |
download | prosody-d4016956295fdb1836dd9c5134193609b01280f3.tar.gz prosody-d4016956295fdb1836dd9c5134193609b01280f3.zip |
mod_storage_sql: Fixed the deserialization of string-typed values.
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 593acd31..1e928471 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -74,7 +74,7 @@ local function serialize(value) return nil, "Unhandled value type: "..t; end local function deserialize(t, value) - if t == "string" then return t; + if t == "string" then return value; elseif t == "boolean" then if value == "true" then return true; elseif value == "false" then return false; end |