MDL-52335 mod_data: php7 compatibility in variable syntax

This commit is contained in:
Marina Glancy
2015-12-03 09:33:24 +08:00
parent 6698b06b11
commit 3af4f54efb
+1 -1
View File
@@ -199,7 +199,7 @@ class data_field_textarea extends data_field_base {
// the value will be retrieved by file_get_submitted_draft_itemid, do not need to save in DB
return true;
} else {
$content->$names[2] = clean_param($value, PARAM_NOTAGS); // content[1-4]
$content->{$names[2]} = clean_param($value, PARAM_NOTAGS); // content[1-4]
}
} else {
$content->content = clean_param($value, PARAM_CLEAN);