* @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;
* @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;
* @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;