summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vmail-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/vmail-model.lua b/vmail-model.lua
index 789f20c..bab4484 100644
--- a/vmail-model.lua
+++ b/vmail-model.lua
@@ -203,7 +203,7 @@ local setuserparams = function(userparams)
if #uid == 1 then
-- There are a few params not to put in the voicemail_values table
local ignoreparam = { username=true, ["vm-password"]=true, ["vm-password-confirm"]=true }
- vmaildb.runsqlcommand("START TRANSACTION")
+ vmaildb.runsqlcommand("BEGIN TRANSACTION")
sql = "DELETE FROM voicemail_values"..generatewhereclause(nil, nil, nil, uid[1].uid).." AND nid IN (SELECT nid FROM voicemail_params)"
vmaildb.runsqlcommand(sql, true)
for i,parm in ipairs(params) do