Permalink
Browse files

OK, this is working now

  • Loading branch information...
1 parent 13da983 commit 6f93182a0eafb8fd2713a9a22bcaa3177c7f0ed1 martin committed Jul 29, 2002
Showing with 8 additions and 8 deletions.
  1. +8 −8 mod/journal/report.php
View
@@ -60,20 +60,20 @@
$entry = $entrybyentry[$num];
// Only update entries where feedback has actually changed.
if (($vals[r] <> $entry->rating) || ($vals[c] <> addslashes($entry->comment))) {
- $newentry->rating = $vals[r];
- $newentry->comment = $vals[c];
- $newentry->teacher = $USER->id;
+ $newentry->rating = $vals[r];
+ $newentry->comment = $vals[c];
+ $newentry->teacher = $USER->id;
$newentry->timemarked = $timenow;
- $newentry->id = $num;
+ $newentry->mailed = 0; // Make sure mail goes out (again, even)
+ $newentry->id = $num;
if (! update_record("journal_entries", $newentry)) {
notify("Failed to update the journal feedback for user $entry->user");
- print_object($newentry);
} else {
$count++;
}
- $entrybyuser[$entry->user]->rating = $vals[r];
- $entrybyuser[$entry->user]->comment = $vals[c];
- $entrybyuser[$entry->user]->teacher = $USER->id;
+ $entrybyuser[$entry->user]->rating = $vals[r];
+ $entrybyuser[$entry->user]->comment = $vals[c];
+ $entrybyuser[$entry->user]->teacher = $USER->id;
$entrybyuser[$entry->user]->timemarked = $timenow;
}
}

0 comments on commit 6f93182

Please sign in to comment.