Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-30880 grade: added a check for the feedback property existing bef…

…ore it is used
  • Loading branch information...
commit c84d86e0b761b517f4d568f75a5bab45f3201a3c 1 parent 4db0616
@andyjdavis andyjdavis authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  grade/edit/tree/grade.php
View
2  grade/edit/tree/grade.php
@@ -171,7 +171,7 @@
// 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'];
}
Please sign in to comment.
Something went wrong with that request. Please try again.