mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-14679 fixed datalib prefix use
This commit is contained in:
parent
ac1ba33e4a
commit
606d760312
@ -1303,7 +1303,7 @@ function fix_course_sortorder($categoryid=0, $n=0, $safe=0, $depth=0, $path='')
|
||||
// will stop us -- shift things aside for a moment...
|
||||
if ($safe || ($n >= $min && $n+$count+1 < $min && $CFG->dbfamily==='mysql')) {
|
||||
$shift = $max + $n + 1000;
|
||||
$DB->execute_sql("UPDATE {$CFG->prefix}course
|
||||
$DB->execute_sql("UPDATE {course}
|
||||
SET sortorder=sortorder+?
|
||||
WHERE category=?", array($shift, $categoryid));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user