mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Change device_mac_address to device_address
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
function device_by_mac($mac) {
|
||||
function device_by_mac($device_address) {
|
||||
$sql = "select * from v_devices ";
|
||||
$sql .= "where device_mac_address = :mac ";
|
||||
$sql .= "where device_address = :device_address ";
|
||||
$sql .= "and device_enabled = 'true' ";
|
||||
$parameters['mac'] = $mac;
|
||||
$parameters['device_address'] = $device_address;
|
||||
$database = new database;
|
||||
$row = $database->select($sql, $parameters, 'row');
|
||||
return is_array($row) && @sizeof($row) != 0 ? $row : false;
|
||||
|
||||
Reference in New Issue
Block a user