aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-13 19:27:14 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-13 19:27:14 +0500
commitd4016956295fdb1836dd9c5134193609b01280f3 (patch)
treee2a24616061bace9dcfd586a54c2f974b43480ec /plugins
parent7491c61427b2aa0717b99b4b65ef0efcdba3c0c4 (diff)
downloadprosody-d4016956295fdb1836dd9c5134193609b01280f3.tar.gz
prosody-d4016956295fdb1836dd9c5134193609b01280f3.zip
mod_storage_sql: Fixed the deserialization of string-typed values.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_sql.lua2
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