mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 08:30:04 +01:00
MDL-9418 use proper addslashes before each insert; merged from MOODLE_18_STABLE
This commit is contained in:
parent
9eb64c947a
commit
13569fd43b
@ -578,7 +578,7 @@ function create_course ($course,$skip_fix_course_sortorder=0){
|
||||
$course->shortname = substr($course->shortname, 0, 15);
|
||||
|
||||
// store it and log
|
||||
if ($newcourseid = insert_record("course", $course)) { // Set up new course
|
||||
if ($newcourseid = insert_record("course", addslashes_object($course))) { // Set up new course
|
||||
$section = NULL;
|
||||
$section->course = $newcourseid; // Create a default section.
|
||||
$section->section = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user