]> git.mjollnir.org Git - moodle.git/commitdiff
Bug fixed in assesssubmission code.
authorrkingdon <rkingdon>
Wed, 19 Nov 2003 17:54:54 +0000 (17:54 +0000)
committerrkingdon <rkingdon>
Wed, 19 Nov 2003 17:54:54 +0000 (17:54 +0000)
mod/workshop/assessments.php

index 501644be10791479f0e1193f0678e50ab4b2ab08..4c4242bcdd83ecb41ef5ddeadf8c5f3852179957 100644 (file)
                        }
                
                // there can be an assessment record (for teacher submissions), if there isn't...
-               if (!get_record("workshop_assessments", "submissionid", $submission->id, "userid", $USER->id)) {
+               if (!$assessment = get_record("workshop_assessments", "submissionid", $submission->id, "userid", 
+                    $USER->id)) {
                        $yearfromnow = time() + 365 * 86400;
                        // ...create one and set timecreated way in the future, this is reset when record is updated
                        $assessment->workshopid = $workshop->id;