From cc2196d43802f2c5d808d087d5b635a9ea25314c Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Sun, 30 Jun 2024 19:24:40 -0600 Subject: [PATCH] Uses the right variable name in upgrader's truncate function Signed-off-by: Jon Stovell --- other/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/upgrade.php b/other/upgrade.php index 72654501a6..cfa7fe84bf 100644 --- a/other/upgrade.php +++ b/other/upgrade.php @@ -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;