[-] core : minor fix in Db->escape function to make it compatible to the phpdoc (2nd parameter html_ok is now optional)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12424 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
8ed9c8f807
commit
d452c4dbf8
1 file changed
+1
-1
+1
-1
@@ -558,7 +558,7 @@ abstract class DbCore
|
|||||||
* @param boolean $html_ok Does data contain HTML code ? (optional)
|
* @param boolean $html_ok Does data contain HTML code ? (optional)
|
||||||
* @return string Sanitized data
|
* @return string Sanitized data
|
||||||
*/
|
*/
|
||||||
public function escape($string, $html_ok)
|
public function escape($string, $html_ok = false)
|
||||||
{
|
{
|
||||||
if (_PS_MAGIC_QUOTES_GPC_)
|
if (_PS_MAGIC_QUOTES_GPC_)
|
||||||
$string = stripslashes($string);
|
$string = stripslashes($string);
|
||||||
|
|||||||
Reference in new issue
Block a user