bug fix in device_by.php (#7027)

This commit is contained in:
Antonio Fernandez 2024-06-28 11:55:43 -04:00 committed by GitHub
parent d1dc1f59ca
commit 9081f59ca9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
?>
?>