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++; }