MDL-14679 fixed datalib prefix use

This commit is contained in:
skodak 2008-05-30 17:06:41 +00:00
parent ac1ba33e4a
commit 606d760312

View File

@ -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));
}