Permalink
Browse files

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

…inaglancy/moodle into MOODLE_24_STABLE
  • Loading branch information...
danpoltawski committed Feb 12, 2013
2 parents db41eeb + abc3a22 commit 6d5f4fd536e80594e8d64f1a90207f0c4452ac6d
Showing with 3 additions and 0 deletions.
  1. +1 −0 course/format/formatlegacy.php
  2. +1 −0 course/format/topics/lib.php
  3. +1 −0 course/format/weeks/lib.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;
@@ -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;
@@ -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;

0 comments on commit 6d5f4fd

Please sign in to comment.