mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Merge branch 'MDL-82315-404' of https://github.com/paulholden/moodle into MOODLE_404_STABLE
This commit is contained in:
commit
5bbd628f49
@ -77,7 +77,6 @@ abstract class backup_plan_dbops extends backup_dbops {
|
||||
// Get the course and sequence of the section
|
||||
$secrec = $DB->get_record('course_sections', array('id' => $sectionid), 'course, sequence');
|
||||
$courseid = $secrec->course;
|
||||
$sequence = $secrec->sequence;
|
||||
|
||||
// Get the section->sequence contents (it roots the activities order)
|
||||
// Get all course modules belonging to requested section
|
||||
@ -89,7 +88,7 @@ abstract class backup_plan_dbops extends backup_dbops {
|
||||
WHERE cm.course = ?
|
||||
AND cm.section = ?
|
||||
AND cm.deletioninprogress <> 1", array($courseid, $sectionid));
|
||||
foreach (explode(',', $sequence) as $moduleid) {
|
||||
foreach (explode(',', (string) $secrec->sequence) as $moduleid) {
|
||||
if (isset($modules[$moduleid])) {
|
||||
$module = array('id' => $modules[$moduleid]->id, 'modname' => $modules[$moduleid]->modname);
|
||||
$modulesarr[] = (object)$module;
|
||||
|
Loading…
x
Reference in New Issue
Block a user