mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update gateway_edit.php
This commit is contained in:
@@ -230,15 +230,15 @@
|
||||
}
|
||||
|
||||
//save to the data
|
||||
$orm = new orm;
|
||||
//$orm->name('gateways');
|
||||
$orm->app_name = 'gateways';
|
||||
$orm->app_uuid = '297ab33e-2c2f-8196-552c-f3567d2caaf8';
|
||||
$database = new database;
|
||||
//$database->name('gateways');
|
||||
$database->app_name = 'gateways';
|
||||
$database->app_uuid = '297ab33e-2c2f-8196-552c-f3567d2caaf8';
|
||||
if (strlen($gateway_uuid) > 0) {
|
||||
$orm->uuid($gateway_uuid);
|
||||
$database->uuid($gateway_uuid);
|
||||
}
|
||||
$orm->save($array);
|
||||
$message = $orm->message;
|
||||
$database->save($array);
|
||||
$message = $database->message;
|
||||
|
||||
//remove xml file (if any) if not enabled
|
||||
if ($enabled != 'true' && $_SESSION['switch']['sip_profiles']['dir'] != '') {
|
||||
|
||||
Reference in New Issue
Block a user