Add missing global declaration

This commit is contained in:
Kumi 2021-11-30 12:32:05 +01:00
parent a53097f422
commit 4de71b44df

View file

@ -55,7 +55,7 @@ class restore_expcontent_activity_structure_step extends restore_activity_struct
* @param stdClass $data the expcontent data
*/
protected function process_expcontent($data) {
global $DB;
global $DB, $USER;
$data = (object) $data;
$data->course = $this->get_courseid();