Skip to content
Snippets Groups Projects
Commit 88acd428 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #142337 by drewish: fixed E_ALL problem.

parent eb8c22e2
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -441,6 +441,7 @@ function drupal_substr($text, $start, $length = NULL) {
else {
$strlen = strlen($text);
// Find the starting byte offset
$bytes = 0;
if ($start > 0) {
// Count all the continuation bytes from the start until we have found
// $start characters
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment