Fixes a bug about null by ref variable

This commit is contained in:
Christophe HENRY 2022-07-28 21:50:52 +02:00
parent 1bc2e3b2bc
commit b5083aaabd
1 changed files with 1 additions and 0 deletions

View File

@ -319,6 +319,7 @@ class GemtextTranslate_html {
protected static function spacesCompress(&$text) {
# Replaces several spaces (0x20) by only one
if (empty($text)) $text = "";
$text = preg_replace("/ +/", " ", $text);
}