Fixed Warnings (#6742)

* Update device_edit.php

* Update dialplan_inbound_add.php

* Update device_vendor_function_edit.php
This commit is contained in:
Anthony
2023-06-02 17:08:11 -06:00
committed by GitHub
parent 93f85e6ea4
commit c01df877e4
3 changed files with 12 additions and 3 deletions

View File

@@ -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;