Skip to content

Commit

Permalink
MDL-9432 - Forgot to return success/failure in two places.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhunt committed Apr 19, 2007
1 parent 8f290d7 commit 181190d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions question/type/match/questiontype.php
Expand Up @@ -610,6 +610,8 @@ function restore_recode_answer($state, $restore) {
* @return bool success or failure.
*/
function decode_content_links_caller($questionids, $restore, &$i) {
$status = true;

// Decode links in the question_match_sub table.
if ($subquestions = get_records_list('question_match_sub', 'question',
implode(',', $questionids), '', 'id, questiontext')) {
Expand All @@ -633,6 +635,8 @@ function decode_content_links_caller($questionids, $restore, &$i) {
}
}
}

return $status;
}
}
//// END OF CLASS ////
Expand Down
4 changes: 4 additions & 0 deletions question/type/multichoice/questiontype.php
Expand Up @@ -560,6 +560,8 @@ function restore_recode_answer($state, $restore) {
* @return bool success or failure.
*/
function decode_content_links_caller($questionids, $restore, &$i) {
$status = true;

// Decode links in the question_multichoice table.
if ($multichoices = get_records_list('question_multichoice', 'question',
implode(',', $questionids), '', 'id, correctfeedback, partiallycorrectfeedback, incorrectfeedback')) {
Expand Down Expand Up @@ -589,6 +591,8 @@ function decode_content_links_caller($questionids, $restore, &$i) {
}
}
}

return $status;
}
}
//// END OF CLASS ////
Expand Down

0 comments on commit 181190d

Please sign in to comment.