From 4c525f7f6f62597cc6de26be31507fc436eda421 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Mon, 16 Jan 2012 10:43:50 +0000 Subject: [PATCH] [-] core : minor fix in Db->escape function to make it compatible to the phpdoc (2nd parameter html_ok is now optional) --- classes/db/Db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/db/Db.php b/classes/db/Db.php index 4925acf5e..f6d5ce9d7 100644 --- a/classes/db/Db.php +++ b/classes/db/Db.php @@ -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);