diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-10-01 14:01:11 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-10-01 14:01:11 +0000 |
commit | d854515fd349aa415a366eedf2aa96a0c75caad4 (patch) | |
tree | 89aac2ed3768cb97d5d0dacb48273b9e67d7fc60 | |
parent | 4c68766fe42e934b54aac55ac492e1f9f76d7c98 (diff) | |
download | acf-freeswitch-vmail-d854515fd349aa415a366eedf2aa96a0c75caad4.tar.bz2 acf-freeswitch-vmail-d854515fd349aa415a366eedf2aa96a0c75caad4.tar.xz |
Removed one remaining reference to old checktable function.
-rw-r--r-- | vmail-model.lua | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/vmail-model.lua b/vmail-model.lua index 038703d..9954cf4 100644 --- a/vmail-model.lua +++ b/vmail-model.lua @@ -233,14 +233,12 @@ local getuserparams = function(username) end if retval.username and username then retval.username.value = username end if validuser(username) then - -- Get password from voicemail_prefs (don't fail for missing table) - if checktable("voicemail_prefs") then - local sql = "SELECT password FROM voicemail_prefs"..generatewhereclause(username) - local password = getselectresponse(sql) - if retval["vm-password"] and password[1] then - retval["vm-password"].value = password[1].password - end - end + -- Get password from voicemail_prefs + sql = "SELECT password FROM voicemail_prefs"..generatewhereclause(username) + local password = getselectresponse(sql) + if retval["vm-password"] and password[1] then + retval["vm-password"].value = password[1].password + end -- Get the uid that corresponds to this username sql = "SELECT uid FROM voicemail_users"..generatewhereclause(username) |