Permalink
Browse files

Fix for bug #3607

  • Loading branch information...
1 parent bf84d91 commit 952284c1b07b1d95aed8926790dbbceb491b23ba fiedorow committed Jun 23, 2005
Showing with 31 additions and 31 deletions.
  1. +31 −31 lib/moodlelib.php
View
@@ -3000,40 +3000,40 @@ function remove_course_contents($courseid, $showfeedback=true) {
// Delete gradebook stuff
- if (delete_records("grade_category", "course", $course->id)) {
- if ($showfeedback) {
- notify("$strdeleted grade categories");
- } else {
- $result = false;
- }
+ if (delete_records("grade_category", "courseid", $course->id)) {
+ if ($showfeedback) {
+ notify("$strdeleted grade categories");
+ }
+ } else {
+ $result = false;
}
- if (delete_records("grade_exceptions", "course", $course->id)) {
- if ($showfeedback) {
- notify("$strdeleted grade exceptions");
- } else {
- $result = false;
- }
+ if (delete_records("grade_exceptions", "courseid", $course->id)) {
+ if ($showfeedback) {
+ notify("$strdeleted grade exceptions");
+ }
+ } else {
+ $result = false;
}
- if (delete_records("grade_item", "course", $course->id)) {
- if ($showfeedback) {
- notify("$strdeleted grade items");
- } else {
- $result = false;
- }
- }
- if (delete_records("grade_letter", "course", $course->id)) {
- if ($showfeedback) {
- notify("$strdeleted grade letters");
- } else {
- $result = false;
- }
+ if (delete_records("grade_item", "courseid", $course->id)) {
+ if ($showfeedback) {
+ notify("$strdeleted grade items");
+ }
+ } else {
+ $result = false;
}
- if (delete_records("grade_preferences", "course", $course->id)) {
- if ($showfeedback) {
- notify("$strdeleted grade preferences");
- } else {
- $result = false;
- }
+ if (delete_records("grade_letter", "courseid", $course->id)) {
+ if ($showfeedback) {
+ notify("$strdeleted grade letters");
+ }
+ } else {
+ $result = false;
+ }
+ if (delete_records("grade_preferences", "courseid", $course->id)) {
+ if ($showfeedback) {
+ notify("$strdeleted grade preferences");
+ }
+ } else {
+ $result = false;
}

0 comments on commit 952284c

Please sign in to comment.