fix PHP 8.0 Fatal error: Array and string offset access syntax with curly braces is no longer supported

This commit is contained in:
Ralf Becker 2021-03-21 18:47:15 +01:00
parent ffc048d472
commit 3e278b3bd3

View File

@ -715,10 +715,10 @@ class Asyncservice
if ($this->debug) error_log(__METHOD__.'() line '.++$n.": $line");
$parts = explode(' ',$line,6);
if ($line{0} == '#' || count($parts) < 6 || ($parts[5]{0} != '/' && substr($parts[5],0,3) != 'php'))
if ($line[0] == '#' || count($parts) < 6 || ($parts[5][0] != '/' && substr($parts[5],0,3) != 'php'))
{
// ignore comments
if ($line{0} != '#')
if ($line[0] != '#')
{
$times['error'] .= $line;
}