Permalink
Browse files

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

…ore it is used
  • Loading branch information...
1 parent 2ddb941 commit 043af1f6b275493d536c8ecd0cf716c791e41675 @andyjdavis andyjdavis committed May 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 043af1f

Please sign in to comment.