mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
course publish MDL-24022 cast bool into int (enrollable field)
This commit is contained in:
parent
a8adbef8ae
commit
9c9de5f0c2
@ -124,7 +124,7 @@ class course_publish_manager {
|
||||
$publication->huburl = $huburl;
|
||||
$publication->courseid = $courseid;
|
||||
$publication->hubcourseid = $hubcourseid;
|
||||
$publication->enrollable = $enrollable;
|
||||
$publication->enrollable = (int) $enrollable;
|
||||
$publication->timepublished = time();
|
||||
$DB->insert_record('course_published', $publication);
|
||||
}
|
||||
@ -244,7 +244,7 @@ class course_publish_manager {
|
||||
}
|
||||
|
||||
if ($enrollable != -1) {
|
||||
$params['enrollable'] = $enrollable;
|
||||
$params['enrollable'] = (int) $enrollable;
|
||||
}
|
||||
|
||||
$DB->delete_records('course_published', $params);
|
||||
|
Loading…
x
Reference in New Issue
Block a user