aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
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
commit2382291f2299cbe3f1d5377e3aaad8ea44fe61f3 (patch)
tree94fb9c1ee6cb552bf323ad118e61901aac1c45b4 /plugins/mod_storage_sql.lua
parent3f28185d4bf6fe318485cc3e392a6ab4d4d7eaf0 (diff)
downloadprosody-2382291f2299cbe3f1d5377e3aaad8ea44fe61f3.tar.gz
prosody-2382291f2299cbe3f1d5377e3aaad8ea44fe61f3.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.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