Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'wip-MDL-37976-MOODLE_24_STABLE' of git://github.com/mar…

…inaglancy/moodle into MOODLE_24_STABLE
  • Loading branch information...
commit 6d5f4fd536e80594e8d64f1a90207f0c4452ac6d 2 parents db41eeb + abc3a22
@danpoltawski danpoltawski authored
View
1  course/format/formatlegacy.php
@@ -336,6 +336,7 @@ public function course_format_options($foreditform = false) {
* @return bool whether there were any changes to the options values
*/
public function update_course_format_options($data, $oldcourse = null) {
+ global $DB;
if ($oldcourse !== null) {
$data = (array)$data;
$oldcourse = (array)$oldcourse;
View
1  course/format/topics/lib.php
@@ -271,6 +271,7 @@ public function course_format_options($foreditform = false) {
* @return bool whether there were any changes to the options values
*/
public function update_course_format_options($data, $oldcourse = null) {
+ global $DB;
if ($oldcourse !== null) {
$data = (array)$data;
$oldcourse = (array)$oldcourse;
View
1  course/format/weeks/lib.php
@@ -276,6 +276,7 @@ public function course_format_options($foreditform = false) {
* @return bool whether there were any changes to the options values
*/
public function update_course_format_options($data, $oldcourse = null) {
+ global $DB;
if ($oldcourse !== null) {
$data = (array)$data;
$oldcourse = (array)$oldcourse;
Please sign in to comment.
Something went wrong with that request. Please try again.