]> git.mjollnir.org Git - moodle.git/commitdiff
merged fixing warnings
authortoyomoyo <toyomoyo>
Thu, 12 Oct 2006 02:31:40 +0000 (02:31 +0000)
committertoyomoyo <toyomoyo>
Thu, 12 Oct 2006 02:31:40 +0000 (02:31 +0000)
question/type/match/questiontype.php

index 93248b2a02037ab572bcdc5895886a624374aa97..766aa200c294f1f017b968c516e5f72602977603 100644 (file)
@@ -454,7 +454,7 @@ class question_match_qtype extends default_questiontype {
             //Now, build the question_match_SUB record structure
             $match_sub = new stdClass;
             $match_sub->question = $new_question_id;
-            $match_sub->code = backup_todb($mat_info['#']['CODE']['0']['#']);
+            $match_sub->code = isset($mat_info['#']['CODE']['0']['#'])?backup_todb($mat_info['#']['CODE']['0']['#']):'';
             if (!$match_sub->code) {
                 $match_sub->code = $oldid;
             }