fix warning in FML

This commit is contained in:
Beu 2023-01-16 16:15:32 +01:00
parent 8f6e98ad46
commit 75866b6954
1 changed files with 1 additions and 1 deletions

View File

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