Skip to content

Commit

Permalink
Fixed broken API call
Browse files Browse the repository at this point in the history
Bug found by Ofir Gal
  • Loading branch information
tuxudo authored Feb 24, 2019
1 parent b364cad commit 534ab61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion displays_info_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function __construct($serial = '')
**/
public function get_count($type)
{
$sql = "SELECT COUNT(CASE WHEN type=? AND AND (virtual_device=0 OR virtual_device IS NULL) THEN 1 END) AS total
$sql = "SELECT COUNT(CASE WHEN type=? AND (virtual_device=0 OR virtual_device IS NULL) THEN 1 END) AS total
FROM displays
LEFT JOIN reportdata USING (serial_number)
".get_machine_group_filter();
Expand Down

0 comments on commit 534ab61

Please sign in to comment.