Skip to content

Commit

Permalink
MDL-28152 Improved detection of the course grade_category on course r…
Browse files Browse the repository at this point in the history
…estore
  • Loading branch information
mudrd8mz committed Jul 1, 2011
1 parent 7fde489 commit 41f21f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backup/moodle2/restore_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ protected function process_grade_category($data) {
//get the already created course level grade category
$category = new stdclass();
$category->courseid = $this->get_courseid();
$category->parent = null;

$coursecategory = $DB->get_record('grade_categories', (array)$category);
if (!empty($coursecategory)) {
Expand Down

0 comments on commit 41f21f9

Please sign in to comment.