Skip to content

Commit

Permalink
OK, this is working now
Browse files Browse the repository at this point in the history
  • Loading branch information
martin committed Jul 29, 2002
1 parent 13da983 commit 6f93182
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mod/journal/report.php
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 6f93182

Please sign in to comment.