From a431a0b68e481893b4b8cccaadfe57994d1a8d90 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 8 Jan 2013 02:17:35 +0000 Subject: Fix bug in forwarding messages --- vmail-model.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vmail-model.lua') diff --git a/vmail-model.lua b/vmail-model.lua index b0ea6a6..c0d8841 100644 --- a/vmail-model.lua +++ b/vmail-model.lua @@ -525,7 +525,7 @@ forward_message = function(self, forwardrequest) local mess = getselectresponse(sql) if #mess == #messages then -- Check if newuser exists - if validuser(newuser) then + if validuser(forwardrequest.value.newuser.value) then for i,m in ipairs(mess) do -- Forward message using mod_voicemail API -- doesn't seem like there's any way to tell whether or not it worked -- cgit v1.2.3