Merge branch 'MDL-30880_feedback_property_21' of git://github.com/andyjdavis/moodle into MOODLE_21_STABLE

This commit is contained in:
Dan Poltawski
2012-06-05 11:58:49 +08:00
+1 -1
View File
@@ -163,7 +163,7 @@ if ($mform->is_cancelled()) {
// form processing
} else if ($data = $mform->get_data(false)) {
if (is_array($data->feedback)) {
if (isset($data->feedback) && is_array($data->feedback)) {
$data->feedbackformat = $data->feedback['format'];
$data->feedback = $data->feedback['text'];
}