Merge branch 'MDL-56430-master' of git://github.com/ryanwyllie/moodle

This commit is contained in:
David Monllao
2016-10-17 15:03:51 +08:00
+3 -1
View File
@@ -2115,7 +2115,9 @@ class core_message_external extends external_api {
$form = new stdClass();
foreach ($formvalues as $formvalue) {
$form->$formvalue['name'] = $formvalue['value'];
// Curly braces to ensure interpretation is consistent between
// php 5 and php 7.
$form->{$formvalue['name']} = $formvalue['value'];
}
$processor->process_form($form, $preferences);