From 34a4ddb878f3e46d6c2a08cfde5bc26dccb97808 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 20 Oct 2014 09:03:23 +0000 Subject: [PATCH] Fix a problem with DND when Follow Me hasn't been used for a particular extension. --- resources/install/scripts/do_not_disturb.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install/scripts/do_not_disturb.lua b/resources/install/scripts/do_not_disturb.lua index 00d3a24c9b..9b7666b156 100644 --- a/resources/install/scripts/do_not_disturb.lua +++ b/resources/install/scripts/do_not_disturb.lua @@ -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.."' ";