mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
bug fix in device_by.php (#7027)
This commit is contained in:
committed by
GitHub
parent
d1dc1f59ca
commit
9081f59ca9
@@ -13,7 +13,7 @@ function device_by_mac($device_address) {
|
||||
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 ";
|
||||
$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 .= "where t2.user_id = :ext ";
|
||||
$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;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user