From 00de7c984cc6ed38a7d8d818263cc710b97fcaf2 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Tue, 14 Aug 2007 11:50:57 +0000 Subject: [PATCH] fix for notice about undefined urls property. --- question/contextmove.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/contextmove.php b/question/contextmove.php index ad7ad18072..cf30301e6c 100644 --- a/question/contextmove.php +++ b/question/contextmove.php @@ -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){ -- 2.39.5