Small fix to ensure php compatability with older php.

This commit is contained in:
Louis Rossouw
2015-06-22 15:18:30 +02:00
parent 375b0e9cd8
commit 38952215f8

View File

@@ -539,8 +539,8 @@ function getpollergroup($poller_group='0')
//Check if it contains a comma
if (strpos($poller_group,',')!== FALSE) {
//If it has a comma use the first element as the poller group
$poller_group=explode(',',$poller_group)[0];
return getpollergroup($poller_group);
$poller_group_array=explode(',',$poller_group);
return getpollergroup($poller_group_array[0]);
} else {
if ($config['distributed_poller_group']) {
//If not use the poller's group from the config