fix: Use isset for checking poller option (#4291)

This commit is contained in:
Neil Lathwood
2016-08-31 15:23:35 +01:00
committed by Tony Murray
parent d5437207e3
commit 16a47ac5e9

View File

@@ -277,7 +277,7 @@ function poll_device($device, $options)
// Update device_groups
UpdateGroupsForDevice($device['device_id']);
if (!$options['m']) {
if (!isset($options['m'])) {
// FIXME EVENTLOGGING -- MAKE IT SO WE DO THIS PER-MODULE?
// This code cycles through the graphs already known in the database and the ones we've defined as being polled here
// If there any don't match, they're added/deleted from the database.