From 34feda861370ec961c7161303d70bf85aea55d4c Mon Sep 17 00:00:00 2001 From: laf Date: Mon, 8 Aug 2016 20:20:18 +0100 Subject: [PATCH] Fixed ./includes/polling/applications/rrdcached.inc.php for php 53 --- includes/polling/applications/rrdcached.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/polling/applications/rrdcached.inc.php b/includes/polling/applications/rrdcached.inc.php index 21bb5e4684..f37136402b 100644 --- a/includes/polling/applications/rrdcached.inc.php +++ b/includes/polling/applications/rrdcached.inc.php @@ -53,7 +53,8 @@ if ($agent_data['app']['rrdcached']) { while ($max == -1 || $count < $max) { $data .= fgets($sock, 128); if ($max == -1) { - $max = explode(' ', $data)[0] + 1; + $tmp_max = explode(' ', $data); + $max = $tmp_max[0]+1; } $count++; }