Update index.lua

Adding  ~= nil as its used in various places in this file changed for better consistency.
This commit is contained in:
FusionPBX
2017-01-30 20:57:37 -07:00
committed by GitHub
parent 159f27d884
commit ee65f04ef3

View File

@@ -321,7 +321,7 @@
if (voicemail_action == "save") then
--check the voicemail quota
if (voicemail_uuid and vm_disk_quota) then
if (voicemail_uuid ~= nil and vm_disk_quota ~= nil) then
--get voicemail message seconds
local sql = [[SELECT coalesce(sum(message_length), 0) as message_sum FROM v_voicemail_messages
WHERE domain_uuid = :domain_uuid
@@ -344,7 +344,7 @@
end
--valid voicemail
if (voicemail_uuid) then
if (voicemail_uuid ~= nil) then
--play the greeting
timeouts = 0;