mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 14:35:29 +02:00
MDL-37976 fixed missing global
This commit is contained in:
parent
6319737865
commit
2333bfa7e8
course/format
@ -336,6 +336,7 @@ class format_legacy extends format_base {
|
||||
* @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 @@ class format_topics extends format_base {
|
||||
* @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 @@ class format_weeks extends format_base {
|
||||
* @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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user