Fix error in < 5.3 in Query Builder

This commit is contained in:
Timothy Warren 2014-02-21 15:08:00 -05:00
parent 4702ccb2b3
commit 3c16ca7253

View File

@ -1287,7 +1287,7 @@ class Query_Builder implements iQuery_Builder {
// Add the interpreted query to the list of executed queries
foreach($evals as $k => &$v)
{
$v = ( ! is_numeric($v)) ? htmlentities($this->db->quote($v), ENT_HTML401 | ENT_NOQUOTES, 'utf-8', FALSE) : $v;
$v = ( ! is_numeric($v)) ? htmlentities($this->db->quote($v), ENT_NOQUOTES, 'utf-8', FALSE) : $v;
}
$esql = str_replace('?', "%s", $sql);
array_unshift($vals, $esql);