From: gustav_delius Date: Sun, 30 Apr 2006 17:13:44 +0000 (+0000) Subject: Don't throw a php error when there are no question answers in the default question... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ed28abca24d8389628038d8dac883e3a62c89ad5;p=moodle.git Don't throw a php error when there are no question answers in the default question type. --- diff --git a/question/type/questiontype.php b/question/type/questiontype.php index f74274bbb4..d21c1ce31d 100644 --- a/question/type/questiontype.php +++ b/question/type/questiontype.php @@ -168,11 +168,8 @@ class default_questiontype { $question->options = new object; } // The default implementation attaches all answers for this question - if (!$question->options->answers = get_records('question_answers', 'question', - $question->id)) { - //notify('Error: Missing question answers!'); - return false; - } + $question->options->answers = get_records('question_answers', 'question', + $question->id); return true; }