]> git.mjollnir.org Git - moodle.git/commitdiff
fixed locking problem in update_raw_grade()
authorskodak <skodak>
Mon, 25 Jun 2007 08:30:03 +0000 (08:30 +0000)
committerskodak <skodak>
Mon, 25 Jun 2007 08:30:03 +0000 (08:30 +0000)
lib/grade/grade_item.php

index ea576a1f61cf9402c5fc2ef68057b4a83ba76aff..30949b7cfd6e0331f4b4e084c78a5d19bedb2fc9 100644 (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;