Permalink
Browse files

MDL-37976 fixed missing global

  • Loading branch information...
marinaglancy committed Feb 12, 2013
1 parent 6319737 commit 2333bfa7e8c32f93ebbaed43e1d2c3111c78e5a9
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 2333bfa

Please sign in to comment.