mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
fix for notice about undefined urls property.
This commit is contained in:
parent
386dd21edc
commit
00de7c984c
@ -92,7 +92,7 @@
|
||||
$thispageurl->remove_params('cattomove', 'toparent', 'totop');
|
||||
redirect($CFG->wwwroot."/question/category.php?".$thispageurl->get_query_string());
|
||||
}elseif ($moveformdata = $contextmoveform->get_data()) {
|
||||
if (is_array($moveformdata->urls)){
|
||||
if (isset($moveformdata->urls) && is_array($moveformdata->urls)){
|
||||
check_dir_exists($CFG->dataroot."/$tocoursefilesid/", true);
|
||||
$flipurls = array_keys($urls);
|
||||
foreach ($moveformdata->urls as $key => $urlaction){
|
||||
|
Loading…
x
Reference in New Issue
Block a user