mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-24058 removed forgotted addslashes
This commit is contained in:
parent
5c38934703
commit
24b8188960
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user