[-] core : minor fix in Db->escape function to make it compatible to the phpdoc (2nd parameter html_ok is now optional)

This commit is contained in:
mMarinetti
2012-01-16 10:43:50 +00:00
parent 451507412c
commit 4c525f7f6f
+1 -1
View File
@@ -558,7 +558,7 @@ abstract class DbCore
* @param boolean $html_ok Does data contain HTML code ? (optional)
* @return string Sanitized data
*/
public function escape($string, $html_ok)
public function escape($string, $html_ok = false)
{
if (_PS_MAGIC_QUOTES_GPC_)
$string = stripslashes($string);