Gateway Edit: Fix default values (#7542)

This commit is contained in:
Alex
2025-10-03 08:35:23 -07:00
committed by GitHub
parent 871e5c0f9e
commit e8717e4ac7

View File

@@ -332,6 +332,12 @@
if (empty($profile)) { $profile = ''; }
if (empty($hostname)) { $hostname = ''; }
if (empty($description)) { $description = ''; }
if ($register === null) { $register = true; }
if ($distinct_to === null) { $distinct_to = false; }
if ($caller_id_in_from === null) { $caller_id_in_from = false; }
if ($supress_cng === null) { $supress_cng = false; }
if ($contact_in_ping === null) { $contact_in_ping = true; }
if ($enabled === null) { $enabled = true; }
//create token
$object = new token;
@@ -917,4 +923,4 @@
//include the footer
require_once "resources/footer.php";
?>
?>