Merged from MOODLE_14_STABLE - Backing out bad sortorder fix in restorelib -- actually we didn't need one.

This commit is contained in:
martinlanghoff 2005-02-24 21:14:32 +00:00
parent 39ba6d586a
commit 97cfb9352c

View file

@ -595,7 +595,7 @@
//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);