fix warning in FML

This commit is contained in:
Beu 2023-01-16 16:15:32 +01:00
parent 8f6e98ad46
commit 75866b6954

View File

@ -47,7 +47,7 @@ abstract class Builder
* @param bool $addApostrophes (optional) Add apostrophes before and after the text * @param bool $addApostrophes (optional) Add apostrophes before and after the text
* @return string * @return string
*/ */
public static function escapeText($text, $addApostrophes = true) public static function escapeText($text = "", $addApostrophes = true)
{ {
$dangers = array('\\', '"', "\n"); $dangers = array('\\', '"', "\n");
$replacements = array('\\\\', '\\"', '\\n'); $replacements = array('\\\\', '\\"', '\\n');