Commit 7b796c5f authored by Penny Leach's avatar Penny Leach Committed by Nigel McNie
Browse files

more identifier quoting in dml - this time in update_record

parent df928794
......@@ -1122,7 +1122,7 @@ function update_record($table, $dataobject, $where=null) {
foreach ($ddd as $key => $value) {
$count++;
$update .= $key .' = ? ';
$update .= db_quote_identifier($key) .' = ? ';
if ($count < $numddd) {
$update .= ', ';
}
......@@ -1135,7 +1135,7 @@ function update_record($table, $dataobject, $where=null) {
foreach ($wherefields as $field) {
$count++;
$whereclause .= $field .' = ? ';
$whereclause .= db_quote_identifier($field) .' = ? ';
if ($count < $numddd) {
$whereclause .= ' AND ';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment