Permalink
Browse files

Bug fixed in assesssubmission code.

  • Loading branch information...
1 parent b686236 commit f52cdc8c43e56e951b5fdadbb528f3e77b675090 rkingdon committed Nov 19, 2003
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/workshop/assessments.php
@@ -214,7 +214,8 @@
}
// 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;

0 comments on commit f52cdc8

Please sign in to comment.