Add a missing semi-colon and improve the tab spacing
This commit is contained in:
@@ -47,19 +47,19 @@ else {
|
|||||||
|
|
||||||
//if no id then exit
|
//if no id then exit
|
||||||
if (isset($id)) {
|
if (isset($id)) {
|
||||||
echo "ID is required."
|
echo "ID is required.";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the dialplan_uuid
|
//get the dialplan_uuid
|
||||||
$orm = new orm;
|
$orm = new orm;
|
||||||
$orm->name('destinations');
|
$orm->name('destinations');
|
||||||
$orm->uuid($id);
|
$orm->uuid($id);
|
||||||
$result = $orm->find()->get();
|
$result = $orm->find()->get();
|
||||||
foreach ($result as &$row) {
|
foreach ($result as &$row) {
|
||||||
$dialplan_uuid = $row["dialplan_uuid"];
|
$dialplan_uuid = $row["dialplan_uuid"];
|
||||||
}
|
}
|
||||||
unset ($prep_statement);
|
unset ($prep_statement);
|
||||||
|
|
||||||
//delete the dialplan
|
//delete the dialplan
|
||||||
if (isset($dialplan_uuid)) {
|
if (isset($dialplan_uuid)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user