MDL-14679 fixed datalib prefix use
This commit is contained in:
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user