bug fix in device_by.php (#7027)
This commit is contained in:
@@ -13,7 +13,7 @@ function device_by_mac($device_address) {
|
|||||||
function device_by_ext($ext, $domain) {
|
function device_by_ext($ext, $domain) {
|
||||||
$sql = "select t1.* ";
|
$sql = "select t1.* ";
|
||||||
$sql .= "from v_devices t1 ";
|
$sql .= "from v_devices t1 ";
|
||||||
$sql .- "inner join v_device_lines t2 on t1.device_uuid = t2.device_uuid ";
|
$sql .= "inner join v_device_lines t2 on t1.device_uuid = t2.device_uuid ";
|
||||||
$sql .= "inner join v_domains t3 on t2.domain_uuid = t3.domain_uuid ";
|
$sql .= "inner join v_domains t3 on t2.domain_uuid = t3.domain_uuid ";
|
||||||
$sql .= "where t2.user_id = :ext ";
|
$sql .= "where t2.user_id = :ext ";
|
||||||
$sql .= "and t3.domain_name = :domain ";
|
$sql .= "and t3.domain_name = :domain ";
|
||||||
@@ -26,4 +26,4 @@ function device_by_ext($ext, $domain) {
|
|||||||
return is_array($row) && @sizeof($row) != 0 ? $row : false;
|
return is_array($row) && @sizeof($row) != 0 ? $row : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user