MDL-24058 removed forgotted addslashes

This commit is contained in:
Petr Skoda 2010-09-02 12:32:36 +00:00
parent 5c38934703
commit 24b8188960

View File

@ -79,7 +79,7 @@ class data_field_checkbox extends data_field_base {
foreach (explode("\n",$this->field->param1) as $checkbox) {
$checkbox = trim($checkbox);
if (in_array(addslashes($checkbox), $content)) {
if (in_array($checkbox, $content)) {
$str .= html_writer::checkbox('f_'.$this->field->id.'[]', s($checkbox), true, $checkbox);
} else {
$str .= html_writer::checkbox('f_'.$this->field->id.'[]', s($checkbox), false, $checkbox);