Hot Desking update the code so the unique id and pin number are updated.

This commit is contained in:
Mark Crane
2013-10-02 01:08:11 +00:00
parent f4a40954ef
commit 060ba47b79
2 changed files with 39 additions and 24 deletions
+5 -4
View File
@@ -40,12 +40,13 @@ else {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
if (count($_GET)>0) {
$id = check_str($_GET["id"]);
}
//get the id
if (count($_GET) > 0) {
$id = check_str($_GET["id"]);
}
//delete the hot desking information
if (strlen($id)>0) {
if (strlen($id) > 0) {
$sql = "update v_extensions set ";
$sql .= "unique_id = null, ";
$sql .= "dial_user = null, ";