fix фигурных скобок у строк

This commit is contained in:
Podlesnov Phedor 2021-07-12 12:47:06 +03:00
parent 9aa5f0fa09
commit dfb800682b

View file

@ -143,7 +143,7 @@ class Tools_SQLStatementExtractor {
trigger_error("substring(), Endindex out of bounds must be $startpos<n<".($len-1), E_USER_ERROR);
}
if ($startpos === $endpos) {
return (string) $string{$startpos};
return (string) $string[$startpos];
} else {
$len = $endpos-$startpos;
}