Skip to content

Commit

Permalink
Backing out bad sortorder fix in restorelib -- actually we didn't nee…
Browse files Browse the repository at this point in the history
…d one.
  • Loading branch information
martinlanghoff committed Feb 24, 2005
1 parent 9d1ff56 commit ce1eb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/restorelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ function restore_create_new_course($restore,&$course_header) {
//Calculate sortorder field
$sortmax = get_record_sql('SELECT MAX(sortorder) AS max
FROM ' . $CFG->prefix . 'course
WHERE category=' . $course->category) || 1000;
WHERE category=' . $course->category);
if (!empty($sortmax->max)) {
$course->sortorder = $sortmax->max + 1;
unset($sortmax);
Expand Down

0 comments on commit ce1eb24

Please sign in to comment.