From cd7f4acc16dbbdfc17e9d2e0990d22bec2af2eec Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 25 May 2008 00:15:01 +0000 Subject: [PATCH] =?utf8?q?MDL-14679=20fixed=20temporary=20emulation=20in?= =?utf8?q?=20old=20set=5Ffield()=20-=20thanks=20Joseph=20R=C3=A9zeau?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/dmllib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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='') { -- 2.39.5