mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Fixed notice
This commit is contained in:
parent
c4381ef5d2
commit
689b19297f
@ -265,7 +265,12 @@
|
||||
$status = true;
|
||||
|
||||
//Get the discussions array
|
||||
$discussions = $info['MOD']['#']['DISCUSSIONS']['0']['#']['DISCUSSION'];
|
||||
$discussions = array();
|
||||
|
||||
if (!empty($info['MOD']['#']['DISCUSSIONS']['0']['#']['DISCUSSION'])) {
|
||||
$discussions = $info['MOD']['#']['DISCUSSIONS']['0']['#']['DISCUSSION'];
|
||||
}
|
||||
|
||||
//First, we check that "course_id" folder exists and create is as necessary in CFG->dataroot
|
||||
$dest_dir = $CFG->dataroot."/".$restore->course_id;
|
||||
check_dir_exists($dest_dir,true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user