Update poller.php

This commit is contained in:
Sawachier
2016-04-26 15:30:07 +02:00
parent 1fb1f4473f
commit ca9caca264

View File

@@ -129,7 +129,7 @@ rrdtool_pipe_open($rrd_process, $rrd_pipes);
echo "Starting polling run:\n\n"; echo "Starting polling run:\n\n";
$polled_devices = 0; $polled_devices = 0;
if (!isset($query)) { if (!isset($query)) {
$query = "SELECT `device_id` FROM `devices` WHERE `disabled` = 0 $where ORDER BY `device_id` ASC;"; $query = "SELECT `device_id` FROM `devices` WHERE `disabled` = 0 $where ORDER BY `device_id` ASC";
} }
foreach (dbFetch($query) as $device) { foreach (dbFetch($query) as $device) {