-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.9.1
-
None
-
None
-
MOODLE_29_STABLE
- Create a course with three or more sections and at least one activity per section
- Backup this course with or without userdata
- Restore the backup as new course
The backup will fail with the message:
Fatal error: Cannot use object of type stdClass as array in W:\www\moodle29\course\format\grid\lib.php on line 886
The method update_course_format_options() the error comes uses an object as array.
The method is inherited from "format_base". There the parameter $data is defined as stdClass or array.
To solve this I put the following line in the file "course/format/grid/lib.php" at line 782:
$data = (array)$data;
It would be great if this or another solution goes into the code.
Best regards
Andreas
- duplicates
-
CONTRIB-5843 Courses Using Grid Format Do not Restore in Moodle 2.9
-
- Closed
-