fixed locking problem in update_raw_grade()

This commit is contained in:
skodak 2007-06-25 08:30:03 +00:00
parent f89526e044
commit 79f2b1ef1c

View File

@ -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;