From 3a513ba4dfeab6fc0dba369ffa8e84d4a7cbd1d6 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 22 Nov 2007 11:51:16 +0000 Subject: [PATCH] MDL-12282 - fix typo in previous commit. Sorry. --- question/type/numerical/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/numerical/questiontype.php b/question/type/numerical/questiontype.php index 2a3564a178..8a07800daf 100644 --- a/question/type/numerical/questiontype.php +++ b/question/type/numerical/questiontype.php @@ -62,7 +62,7 @@ class question_numerical_qtype extends question_shortanswer_qtype { function get_numerical_units(&$question) { if ($units = get_records('question_numerical_units', 'question', $question->id, 'id ASC')) { - $units = array_values($question->options->units); + $units = array_values($units); } else { $units = array(); } -- 2.39.5