Provision: Remove old reference to .
This commit is contained in:
parent
c4548c0c06
commit
4a7bddbf14
|
|
@ -61,7 +61,7 @@
|
|||
if (empty($mac) && !empty($ext)) {
|
||||
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
|
||||
$domain_name = $domain_array[0];
|
||||
$device = device_by_ext($db, $ext, $domain_name);
|
||||
$device = device_by_ext($ext, $domain_name);
|
||||
if ($device !== false && ($device['device_vendor'] == 'escene' || $device['device_vendor'] == 'grandstream')) {
|
||||
$mac = $device['device_mac_address'];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
function device_by_mac($db, $mac) {
|
||||
function device_by_mac($mac) {
|
||||
$sql = "select * from v_devices ";
|
||||
$sql .= "where device_mac_address = :mac ";
|
||||
$sql .= "and device_enabled = 'true' ";
|
||||
|
|
@ -11,7 +11,7 @@ function device_by_mac($db, $mac) {
|
|||
unset($sql, $parameters, $row);
|
||||
}
|
||||
|
||||
function device_by_ext($db, $ext, $domain) {
|
||||
function device_by_ext($ext, $domain) {
|
||||
$sql = "select t1.* ";
|
||||
$sql .= "from v_devices t1 ";
|
||||
$sql .- "inner join v_device_lines t2 on t1.device_uuid = t2.device_uuid ";
|
||||
|
|
|
|||
Loading…
Reference in New Issue