Update gateway_edit.php
This commit is contained in:
@@ -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'] != '') {
|
||||||
|
|||||||
Reference in New Issue
Block a user