Skip to content

Commit

Permalink
Merge branch 'MDL-58539_master' of https://github.com/dmonllao/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Apr 18, 2017
2 parents bb17eaf + fc9bc65 commit d4be750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assign/feedback/editpdf/locallib.php
Expand Up @@ -58,7 +58,7 @@ public function get_name() {
*/
public function get_widget($userid, $grade, $readonly) {
$attempt = -1;
if ($grade) {
if ($grade && isset($grade->attemptnumber)) {
$attempt = $grade->attemptnumber;
} else {
$grade = $this->assignment->get_user_grade($userid, true);
Expand Down

0 comments on commit d4be750

Please sign in to comment.