diff --git a/app/provision/resources/functions/device_by.php b/app/provision/resources/functions/device_by.php index 91a97883b8..cccf2ec10a 100644 --- a/app/provision/resources/functions/device_by.php +++ b/app/provision/resources/functions/device_by.php @@ -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; } -?> \ No newline at end of file +?>