Permalink
Browse files

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

…ore it is used
  • Loading branch information...
1 parent 14fdcb4 commit d09e2a36f2e75ebabd45e1784295b971b2b18ff8 @andyjdavis andyjdavis committed May 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 grade/edit/tree/grade.php
View
2 grade/edit/tree/grade.php
@@ -163,7 +163,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'];
}

0 comments on commit d09e2a3

Please sign in to comment.