From ed28abca24d8389628038d8dac883e3a62c89ad5 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sun, 30 Apr 2006 17:13:44 +0000 Subject: [PATCH] Don't throw a php error when there are no question answers in the default question type. --- question/type/questiontype.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; } -- 2.39.5