MDL-14679 fixed temporary emulation in old set_field() - thanks Joseph Rézeau

This commit is contained in:
skodak
2008-05-25 00:15:01 +00:00
parent 9c9fad9d71
commit cd7f4acc16
+1 -1
View File
@@ -354,7 +354,7 @@ function set_field($table, $newfield, $newvalue, $field1, $value1, $field2='', $
$conditions[$field3] = stripslashes_recursive($value3);
}
return $DB->set_field($table, $newfield, $newvalue, $conditions);
return $DB->set_field($table, $newfield, stripslashes_recursive($newvalue), $conditions);
}
function count_records($table, $field1='', $value1='', $field2='', $value2='', $field3='', $value3='') {