diff --git a/app/dialplans/dialplan_add.php b/app/dialplans/dialplan_add.php index 25a0a32abf..3e603c6db4 100644 --- a/app/dialplans/dialplan_add.php +++ b/app/dialplans/dialplan_add.php @@ -72,9 +72,8 @@ $dialplan_context = $_POST["dialplan_context"]; $dialplan_order = $_POST["dialplan_order"]; - $dialplan_enabled = $_POST["dialplan_enabled"]; + $dialplan_enabled = $_POST["dialplan_enabled"] ?? 'false'; $dialplan_description = $_POST["dialplan_description"]; - if (empty($dialplan_enabled)) { $dialplan_enabled = "true"; } //set default to enabled } //set the default @@ -521,10 +520,18 @@ echo " ".$text['label-enabled']."\n"; echo " \n"; echo "