Update gateway_edit.php

This commit is contained in:
FusionPBX
2016-10-18 09:35:13 -06:00
committed by GitHub
parent 2509690d34
commit 5a02f16fc3
+7 -7
View File
@@ -230,15 +230,15 @@
} }
//save to the data //save to the data
$orm = new orm; $database = new database;
//$orm->name('gateways'); //$database->name('gateways');
$orm->app_name = 'gateways'; $database->app_name = 'gateways';
$orm->app_uuid = '297ab33e-2c2f-8196-552c-f3567d2caaf8'; $database->app_uuid = '297ab33e-2c2f-8196-552c-f3567d2caaf8';
if (strlen($gateway_uuid) > 0) { if (strlen($gateway_uuid) > 0) {
$orm->uuid($gateway_uuid); $database->uuid($gateway_uuid);
} }
$orm->save($array); $database->save($array);
$message = $orm->message; $message = $database->message;
//remove xml file (if any) if not enabled //remove xml file (if any) if not enabled
if ($enabled != 'true' && $_SESSION['switch']['sip_profiles']['dir'] != '') { if ($enabled != 'true' && $_SESSION['switch']['sip_profiles']['dir'] != '') {