=================================================================== RCS file: /cvsroot/moodle/moodle/question/type/match/edit_match_form.php,v retrieving revision 1.5.2.1 diff -u -r1.5.2.1 edit_match_form.php --- edit_match_form.php 7 Mar 2007 19:24:10 -0000 1.5.2.1 +++ edit_match_form.php 10 Oct 2007 17:30:38 -0000 @@ -73,10 +73,10 @@ foreach ($questions as $key => $question){ $trimmedquestion = trim($question); $trimmedanswer = trim($answers[$key]); - if (!empty($trimmedanswer) && !empty($trimmedquestion)){ + if (isset($trimmedanswer) && isset($trimmedquestion)){ $questioncount++; } - if (!empty($trimmedquestion) && empty($trimmedanswer)){ + if (isset($trimmedquestion) && !isset($trimmedanswer)){ $errors['subanswers['.$key.']'] = get_string('nomatchinganswerforq', 'qtype_match', $trimmedquestion); } }