Fixed Warnings (#6742)
* Update device_edit.php * Update dialplan_inbound_add.php * Update device_vendor_function_edit.php
This commit is contained in:
parent
93f85e6ea4
commit
c01df877e4
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue