From 4c7bc76790bcf03d5f5ecc4d65692e9304bb6a1c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 18 Oct 2016 09:33:35 -0600 Subject: [PATCH] Update destination_edit.php --- app/destinations/destination_edit.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 0b441019b6..584eda9049 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -379,15 +379,15 @@ $p->add("dialplan_detail_edit", 'temp'); //save the dialplan - $orm = new orm; - $orm->name('dialplans'); - $orm->app_name = 'dialplans'; - $orm->app_uuid = '5ec89622-b19c-3559-64f0-afde802ab139'; + $database = new database; + $database->name('dialplans'); + $database->app_name = 'dialplans'; + $database->app_uuid = '5ec89622-b19c-3559-64f0-afde802ab139'; if (isset($dialplan["dialplan_uuid"])) { - $orm->uuid($dialplan["dialplan_uuid"]); + $database->uuid($dialplan["dialplan_uuid"]); } - $orm->save($array); - $dialplan_response = $orm->message; + $database->save($array); + $dialplan_response = $database->message; //remove the temporary permission $p->delete("dialplan_add", 'temp');