Update index.lua

Add the voicemail_uuid to the if statement on vm disk quota.
This commit is contained in:
FusionPBX 2017-01-30 20:56:05 -07:00 committed by GitHub
parent 10f1d7a2b2
commit fb540e047b
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@
if (voicemail_action == "save") then
--check the voicemail quota
if (vm_disk_quota) then
if (voicemail_id ~= 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