Skip to content

Commit

Permalink
MDL-14679 fixed temporary emulation in old set_field() - thanks Josep…
Browse files Browse the repository at this point in the history
…h Rézeau
  • Loading branch information
skodak committed May 25, 2008
1 parent 9c9fad9 commit cd7f4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dmllib.php
Expand Up @@ -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='') {
Expand Down

0 comments on commit cd7f4ac

Please sign in to comment.