diff --git a/discovery.php b/discovery.php index ededb3bfa4062afe2c2dfeb16099ff74e9e471dd..5534e4e8da86e6232c641e904715d4d02a16412d 100755 --- a/discovery.php +++ b/discovery.php @@ -40,11 +40,11 @@ if (isset($options['h'])) { $doing = 'new'; } elseif ($options['h']) { if (is_numeric($options['h'])) { - $where = "AND `device_id` = ?"; + $where = 'AND `device_id` = ?'; $sqlparams[] = $options['h']; $doing = $options['h']; } else { - $where = "AND `hostname` LIKE ?"; + $where = 'AND `hostname` LIKE ?'; $sqlparams[] = str_replace('*', '%', $options['h']); $doing = $options['h']; }