mirror of
https://tildegit.org/sbgodin/HtmGem.git
synced 2023-08-25 13:53:12 +02:00
Fixes a bug about null by ref variable
This commit is contained in:
parent
0079c31e14
commit
211518e098
@ -319,6 +319,7 @@ class GemtextTranslate_html {
|
|||||||
|
|
||||||
protected static function spacesCompress(&$text) {
|
protected static function spacesCompress(&$text) {
|
||||||
# Replaces several spaces (0x20) by only one
|
# Replaces several spaces (0x20) by only one
|
||||||
|
if (empty($text)) $text = "";
|
||||||
$text = preg_replace("/ +/", " ", $text);
|
$text = preg_replace("/ +/", " ", $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user