mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Merge pull request #1324 from spinza/phpcomp
Small fix to ensure php compatability with older php.
This commit is contained in:
@@ -539,8 +539,8 @@ function getpollergroup($poller_group='0')
|
|||||||
//Check if it contains a comma
|
//Check if it contains a comma
|
||||||
if (strpos($poller_group,',')!== FALSE) {
|
if (strpos($poller_group,',')!== FALSE) {
|
||||||
//If it has a comma use the first element as the poller group
|
//If it has a comma use the first element as the poller group
|
||||||
$poller_group=explode(',',$poller_group)[0];
|
$poller_group_array=explode(',',$poller_group);
|
||||||
return getpollergroup($poller_group);
|
return getpollergroup($poller_group_array[0]);
|
||||||
} else {
|
} else {
|
||||||
if ($config['distributed_poller_group']) {
|
if ($config['distributed_poller_group']) {
|
||||||
//If not use the poller's group from the config
|
//If not use the poller's group from the config
|
||||||
|
|||||||
Reference in New Issue
Block a user