mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use isset with REQUEST address and mac
This commit is contained in:
@@ -38,8 +38,12 @@
|
||||
$device_template = '';
|
||||
|
||||
//define PHP variables from the HTTP values
|
||||
$device_address = $_REQUEST['mac'] ?? '';
|
||||
$device_address = $_REQUEST['address'] ?? '';
|
||||
if (isset($_REQUEST['address'])) {
|
||||
$device_address = $_REQUEST['address'];
|
||||
}
|
||||
if (isset($_REQUEST['mac'])) {
|
||||
$device_address = $_REQUEST['mac'];
|
||||
}
|
||||
$file = $_REQUEST['file'] ?? '';
|
||||
$ext = $_REQUEST['ext'] ?? '';
|
||||
//if (!empty($_REQUEST['template'])) {
|
||||
|
||||
Reference in New Issue
Block a user