From c01df877e48970a35d864e28f4682d6c0c306bbf Mon Sep 17 00:00:00 2001 From: Anthony <96078404+AntoniusDC@users.noreply.github.com> Date: Fri, 2 Jun 2023 17:08:11 -0600 Subject: [PATCH] Fixed Warnings (#6742) * Update device_edit.php * Update dialplan_inbound_add.php * Update device_vendor_function_edit.php --- app/devices/device_edit.php | 6 +++++- app/devices/device_vendor_function_edit.php | 6 ++++-- app/dialplan_inbound/dialplan_inbound_add.php | 3 +++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index 9ab9ad05f9..71633037b9 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -43,6 +43,10 @@ $language = new text; $text = $language->get(); +//set the defaults + $device_model = ''; + $device_firmware_version = ''; + //include the device class require_once "app/devices/resources/classes/device.php"; @@ -57,7 +61,7 @@ //get total device count from the database, check limit, if defined if ($action == 'add') { - if ($_SESSION['limit']['devices']['numeric'] != '') { + if (!empty($_SESSION['limit']['devices']['numeric']) && $_SESSION['limit']['devices']['numeric']) { $sql = "select count(*) from v_devices where domain_uuid = :domain_uuid "; $parameters['domain_uuid'] = $_SESSION['domain_uuid']; $database = new database; diff --git a/app/devices/device_vendor_function_edit.php b/app/devices/device_vendor_function_edit.php index 452eda8b72..249e600502 100644 --- a/app/devices/device_vendor_function_edit.php +++ b/app/devices/device_vendor_function_edit.php @@ -31,11 +31,13 @@ //includes files require_once "resources/require.php"; - //add multi-lingual support $language = new text; $text = $language->get(); +//set the defaults + $device_vendor_function_uuid = ''; + //delete the group from the menu item if (!empty($_REQUEST["a"]) && $_REQUEST["a"] == "delete" && permission_exists("device_vendor_function_delete") && !empty($_REQUEST["id"])) { //get the id @@ -402,4 +404,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/dialplan_inbound/dialplan_inbound_add.php b/app/dialplan_inbound/dialplan_inbound_add.php index 0e20dafc65..6ff9994410 100644 --- a/app/dialplan_inbound/dialplan_inbound_add.php +++ b/app/dialplan_inbound/dialplan_inbound_add.php @@ -51,6 +51,9 @@ //set the defaults $dialplan_name = ''; $dialplan_description = ''; + $condition_expression_1 = ''; + $condition_expression_2 = ''; + $action_2 = ''; $limit = ''; //get the http get values and set them as php variables