diff --git a/question/contextmoveq.php b/question/contextmoveq.php
index <HASH>..<HASH> 100644
--- a/question/contextmoveq.php
+++ b/question/contextmoveq.php
@@ -96,7 +96,7 @@ $contextmoveform = new question_context_move_question_form($thispageurl,
 if ($contextmoveform->is_cancelled()){
     redirect($returnurl);
 }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);
         //actions on files
fix for notice about undefined urls property.