From 9df02db52b3ac86bb697012c21ba88d6c55e17e9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 5 Jan 2019 09:50:10 -0700 Subject: [PATCH] Update extension_edit.php --- app/extensions/extension_edit.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index b0abb58a77..e6f376aac4 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -453,14 +453,14 @@ unset($sql); } //update device key label - if (strlen($effective_caller_id_name) > 0) {​ - $sql = "update v_device_keys set ";​ - $sql .= "device_key_label = '".$effective_caller_id_name."' ";​ - $sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";​ - $sql .= "and device_key_value = '".$extension."' ";​ - $db->exec(check_sql($sql));​ - unset($sql);​ - }​ + if (strlen($effective_caller_id_name) > 0) { + $sql = "update v_device_keys set "; + $sql .= "device_key_label = '".$effective_caller_id_name."' "; + $sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' "; + $sql .= "and device_key_value = '".$extension."' "; + $db->exec(check_sql($sql)); + unset($sql); + } //assign the user to the extension if ($action == "update" && strlen($_POST["extension_users"][0]["user_uuid"]) > 0) { $array["extension_users"][0]["extension_user_uuid"] = uuid();