From: skodak Date: Sun, 25 May 2008 00:15:01 +0000 (+0000) Subject: MDL-14679 fixed temporary emulation in old set_field() - thanks Joseph Rézeau X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cd7f4acc16dbbdfc17e9d2e0990d22bec2af2eec;p=moodle.git MDL-14679 fixed temporary emulation in old set_field() - thanks Joseph Rézeau --- diff --git a/lib/dmllib.php b/lib/dmllib.php index a62cd5ff97..2e46da7f7d 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -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='') {