From 1f4d6e9af8ce8643ffbdaed67dd9aaef46d48bf1 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Thu, 12 Oct 2006 02:31:40 +0000 Subject: [PATCH] merged fixing warnings --- question/type/match/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/match/questiontype.php b/question/type/match/questiontype.php index 93248b2a02..766aa200c2 100644 --- a/question/type/match/questiontype.php +++ b/question/type/match/questiontype.php @@ -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; } -- 2.39.5