Permalink
Browse files

MDL-37976 fixed missing global

  • Loading branch information...
1 parent 0e6d8bc commit abc3a22f424f376183254b8fc4d3d097880d798b @marinaglancy marinaglancy committed Feb 12, 2013
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 abc3a22

Please sign in to comment.