Changeset

6728:db28b8639737

mod_storage_sql2: Fix argument compat thing from 41725f3df3cc, it was backwards
author Kim Alvefur <zash@zash.se>
date Thu, 21 May 2015 12:11:08 +0200
parents 6726:e6e80ec50030
children 6729:daa5c83b2879 6740:99b3f29c3c71
files plugins/mod_storage_sql2.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_storage_sql2.lua	Tue May 19 18:24:53 2015 +0200
+++ b/plugins/mod_storage_sql2.lua	Thu May 21 12:11:08 2015 +0200
@@ -221,7 +221,7 @@
 archive_store.__index = archive_store
 function archive_store:append(username, key, value, when, with)
 	if type(when) ~= "number" then
-		value, when, with = when, with, value;
+		when, with, value = value, when, with;
 	end
 	local user,store = username,self.store;
 	return engine:transaction(function()