From 79f2b1ef1c1f824beea6267905f3cf9bdc34e7a5 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 25 Jun 2007 08:30:03 +0000 Subject: [PATCH] fixed locking problem in update_raw_grade() --- lib/grade/grade_item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grade/grade_item.php b/lib/grade/grade_item.php index ea576a1f61..30949b7cfd 100644 --- a/lib/grade/grade_item.php +++ b/lib/grade/grade_item.php @@ -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; -- 2.39.5