From 38952215f8df371649b1079e339b3ec5cc360617 Mon Sep 17 00:00:00 2001 From: Louis Rossouw Date: Mon, 22 Jun 2015 15:18:30 +0200 Subject: [PATCH] Small fix to ensure php compatability with older php. --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index b6583ab8a..725850897 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -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