From: skodak Date: Sat, 22 Apr 2006 17:28:18 +0000 (+0000) Subject: fixed undefined $timenow X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=117987949a2dd0e126ebe74877e78d0792179340;p=moodle.git fixed undefined $timenow --- diff --git a/mod/exercise/locallib.php b/mod/exercise/locallib.php index 61042bbe19..77e32665b3 100644 --- a/mod/exercise/locallib.php +++ b/mod/exercise/locallib.php @@ -997,10 +997,11 @@ function exercise_list_submissions_for_admin($exercise) { /////////////////////////////////////////////////////////////////////////////////////////////// function exercise_list_teacher_assessments($exercise, $user) { global $CFG; + $timenow = time(); if (! $course = get_record("course", "id", $exercise->course)) { error("Course is misconfigured"); - } + } $table->head = array (get_string("title", "exercise"), get_string("action", "exercise"), get_string("comment", "exercise")); $table->align = array ("left", "left", "left"); $table->size = array ("*", "*", "*");