Changes throughout Moodle to remove any reserved words from the
Moodle tables. ie user -> userid in many tables, plus in user_students start -> starttime and end -> endtime I've just done all this as carefully as I could ... I don't think I missed anything but it's pretty intensive work and I'd be fooling myself if I didn't think I'd missed a couple. Note that this version should pretty much be able to bootstrap itself using PostgreSQL now ... but this is untested
This commit is contained in:
+2
-2
@@ -19,7 +19,7 @@
|
||||
error("Course module is incorrect");
|
||||
}
|
||||
|
||||
if ($current = get_record("choice_answers", "choice", $choice->id, "user", $USER->id)) {
|
||||
if ($current = get_record("choice_answers", "choice", $choice->id, "userid", $USER->id)) {
|
||||
$answerchecked[$current->answer] = "CHECKED";
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
add_to_log($course->id, "choice", "update", "view.php?id=$cm->id", "$choice->id");
|
||||
} else {
|
||||
$newanswer->choice = $choice->id;
|
||||
$newanswer->user = $USER->id;
|
||||
$newanswer->userid = $USER->id;
|
||||
$newanswer->answer = $form->answer;
|
||||
$newanswer->timemodified = $timenow;
|
||||
if (! insert_record("choice_answers", $newanswer)) {
|
||||
|
||||
Reference in New Issue
Block a user