mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merged from MOODLE_14_STABLE - Backing out bad sortorder fix in restorelib -- actually we didn't need one.
This commit is contained in:
parent
39ba6d586a
commit
97cfb9352c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue