Skip to content
This repository has been archived by the owner. It is now read-only.

Commit 7ee117f

Browse files
committed
Merge branch 'MDL-50083' of https://github.com/stronk7/moodle
2 parents 0ddbf9b + 5311e22 commit 7ee117f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mod/assign/locallib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7205,7 +7205,7 @@ protected function add_attempt($userid) {
72057205

72067206
$this->update_submission($newsubmission, $userid, false, $this->get_instance()->teamsubmission);
72077207
$flags = $this->get_user_flags($userid, false);
7208-
if ($flags->locked) {
7208+
if (isset($flags->locked) && $flags->locked) { // May not exist.
72097209
$this->process_unlock_submission($userid);
72107210
}
72117211
return true;

0 commit comments

Comments
 (0)