Код: Выделить всё
Message: Trying to access array offset on value of type null
Вот что находится в строке, которая выдает ошибку:
Код: Выделить всё
$len = $cOTLdata['char_data'] === null ? 0 : count($cOTLdata['char_data']);
Код: Выделить всё
public function trimOTLdata(&$cOTLdata, $Left = true, $Right = true)
{
$len = $cOTLdata['char_data'] === null ? 0 : count($cOTLdata['char_data']);
$nLeft = 0;
$nRight = 0;
//etc
Подробнее здесь: https://stackoverflow.com/questions/593 ... -type-null