Fix mysqli db class: escaping did not work at all

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@365 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2009-09-22 05:04:59 +00:00
parent dbb27278de
commit f05dad73e0

View file

@ -380,11 +380,7 @@ class sql_db
}
function sql_escape($msg) {
if (function_exists('mysql_real_escape_string')) {
return @mysql_real_escape_string($msg, $this->db_connect_id);
} else {
return mysql_escape_string($msg);
}
return mysqli_real_escape_string($this->db_connect_id, $msg);
}
function sql_error($sql = '')