]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14679 fixed temporary emulation in old set_field() - thanks Joseph Rézeau
authorskodak <skodak>
Sun, 25 May 2008 00:15:01 +0000 (00:15 +0000)
committerskodak <skodak>
Sun, 25 May 2008 00:15:01 +0000 (00:15 +0000)
lib/dmllib.php

index a62cd5ff97e480d207a1149ad88536e9ffe466f3..2e46da7f7d93f9044d6209dcf19a28d7106b0b0a 100644 (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='') {