Unset the prepared statements after they have been used in destination_edit.php
This commit is contained in:
@@ -103,8 +103,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
if ($row['num_rows'] > 0) {
|
if ($row['num_rows'] > 0) {
|
||||||
$msg .= $text['message-duplicate']."<br>\n";
|
$msg .= $text['message-duplicate']."<br>\n";
|
||||||
}
|
}
|
||||||
|
unset($prep_statement);
|
||||||
}
|
}
|
||||||
unset($prep_statement);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//show the message
|
//show the message
|
||||||
@@ -160,6 +160,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
else {
|
else {
|
||||||
$dialplan_uuid = "";
|
$dialplan_uuid = "";
|
||||||
}
|
}
|
||||||
|
unset($prep_statement);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$dialplan_uuid = "";
|
$dialplan_uuid = "";
|
||||||
@@ -409,7 +410,6 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
$destination_carrier = $row["destination_carrier"];
|
$destination_carrier = $row["destination_carrier"];
|
||||||
break; //limit to 1 row
|
break; //limit to 1 row
|
||||||
}
|
}
|
||||||
unset ($prep_statement);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the dialplan details in an array
|
//get the dialplan details in an array
|
||||||
|
|||||||
Reference in New Issue
Block a user