Fix a problem with DND when Follow Me hasn't been used for a particular extension.

This commit is contained in:
Mark Crane
2014-10-20 09:03:23 +00:00
parent b4a554bfa3
commit 34a4ddb878

View File

@@ -124,7 +124,7 @@
--disable follow me
if (follow_me_uuid ~= nil) then
if (enabled == "true") then
if (string.len(follow_me_uuid) > 0 and enabled == "true") then
sql = "update v_follow_me set ";
sql = sql .. "follow_me_enabled = 'false' ";
sql = sql .. "where domain_uuid = '"..domain_uuid.."' ";