From 9cf8bc02771ac1fef2e3d11e02056ec8d535c6ef Mon Sep 17 00:00:00 2001 From: Louis Rossouw Date: Sat, 11 Jul 2015 00:55:29 +0200 Subject: [PATCH] Fix poller group query in discovery.php. --- discovery.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/discovery.php b/discovery.php index 37f75db4a..7d8cfbd7f 100755 --- a/discovery.php +++ b/discovery.php @@ -99,10 +99,9 @@ include("includes/sql-schema/update.php"); $discovered_devices = 0; if ($config['distributed_poller'] === TRUE) { - $where .= " AND poller_group IN(?)"; - $params = array($config['distributed_poller_group']); + $where .= " AND poller_group IN(".$config['distributed_poller_group'].")"; } -foreach (dbFetch("SELECT * FROM `devices` WHERE status = 1 AND disabled = 0 $where ORDER BY device_id DESC",$params) as $device) +foreach (dbFetch("SELECT * FROM `devices` WHERE status = 1 AND disabled = 0 $where ORDER BY device_id DESC") as $device) { discover_device($device, $options); }