patches from lenwe (remove crappy tiny if and fix auth)

git-svn-id: http://www.observium.org/svn/observer/trunk@2221 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-03 12:22:04 +00:00
parent 802958fe3d
commit 6f26110c7d
2 changed files with 14 additions and 8 deletions

View File

@@ -88,9 +88,11 @@ if (isset($options['d']))
echo("Starting polling run:\n\n");
$polled_devices = 0;
if(!isset($query))
{
$device_query = mysql_query("SELECT `device_id` FROM `devices` WHERE `disabled` = 0 $where ORDER BY `device_id` ASC");
else
} else {
$device_query = mysql_query($query);
}
print mysql_error();
while ($device = mysql_fetch_assoc($device_query))