fix warning in FML
This commit is contained in:
parent
8f6e98ad46
commit
75866b6954
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user