Skip to content

Commit

Permalink
Uses the right variable name in upgrader's truncate function
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Jul 1, 2024
1 parent 6996e04 commit cc2196d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion other/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ function loadEssentialData()
{
$new_string = '';

foreach (preg_split('/((?>&.*?;|\X))/u', $string, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY) as $char)
foreach (preg_split('/((?>&.*?;|\X))/u', $word, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY) as $char)
{
if (strlen($new_string . $char) > $max_chars)
break;
Expand Down

0 comments on commit cc2196d

Please sign in to comment.