From 16a47ac5e9b6884cebe01a7ca2c9cd328641dbc7 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Wed, 31 Aug 2016 15:23:35 +0100 Subject: [PATCH] fix: Use isset for checking poller option (#4291) --- includes/polling/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/polling/functions.inc.php b/includes/polling/functions.inc.php index 3c9f5940eb..86c521a646 100644 --- a/includes/polling/functions.inc.php +++ b/includes/polling/functions.inc.php @@ -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.