diff options
author | Kim Alvefur <zash@zash.se> | 2015-05-19 18:24:09 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-05-19 18:24:09 +0200 |
commit | fa8bb62f49c83ba3cef3d034aceb12d55ca2b226 (patch) | |
tree | 43d2adbf47d577c599785931c4506503b22e2ed0 /plugins | |
parent | 8cc5c832b7aedcc503c025dcfee76d7573365159 (diff) | |
download | prosody-fa8bb62f49c83ba3cef3d034aceb12d55ca2b226.tar.gz prosody-fa8bb62f49c83ba3cef3d034aceb12d55ca2b226.zip |
mod_storage_sql2: Change order of arguments to :append to be the same as return values from :find iterator
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_storage_sql2.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_storage_sql2.lua b/plugins/mod_storage_sql2.lua index c02ad42c..aab37697 100644 --- a/plugins/mod_storage_sql2.lua +++ b/plugins/mod_storage_sql2.lua @@ -216,9 +216,9 @@ end local archive_store = {} archive_store.__index = archive_store -function archive_store:append(username, key, when, with, value) - if value == nil then -- COMPAT early versions - when, with, value, key = key, when, with, value +function archive_store:append(username, key, value, when, with) + if type(when) ~= "number" then + value, when, with = when, with, value; end local user,store = username,self.store; return engine:transaction(function() |