mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
fixed locking problem in update_raw_grade()
This commit is contained in:
parent
f89526e044
commit
79f2b1ef1c
@ -1060,7 +1060,7 @@ class grade_item extends grade_object {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($grade->locktime < time()) {
|
||||
if (!empty($grade->locktime) and $grade->locktime < time()) {
|
||||
// do not update grades that should be already locked
|
||||
// this does not solve all problems, cron is still needed to recalculate the final grades periodically
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user