From 0dcfa6be776ac7caa5260a1885460822b7da2f9e Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 20 May 2015 02:39:05 +0000 Subject: [PATCH] If follow me is disabled still allow it to save the destination(s). --- app/calls/resources/classes/follow_me.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/calls/resources/classes/follow_me.php b/app/calls/resources/classes/follow_me.php index 27ef52e3af..be2e0215ad 100644 --- a/app/calls/resources/classes/follow_me.php +++ b/app/calls/resources/classes/follow_me.php @@ -316,12 +316,13 @@ include "root.php"; } unset ($prep_statement); + //add follow me + if (strlen($follow_me_uuid) == 0) { + $this->add(); + } + //is follow me enabled if ($this->follow_me_enabled == "true") { - //add follow me - if (strlen($follow_me_uuid) == 0) { - $this->add(); - } //set the extension dial string $sql = "select * from v_follow_me_destinations "; $sql .= "where follow_me_uuid = '".$this->follow_me_uuid."' ";